Skip to content

Commit eeaa09e

Browse files
committed
Fix HYPERSYNC_API_KEY passing in tests
1 parent 56f422b commit eeaa09e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/lagoon/lagoon-cowswap-example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def main():
297297
if status == "traded":
298298
# Make CowSwap sound effect
299299
print("Moooooo 🐮")
300-
print(f"Order final result:\n{pformat(cowswap_result.get_status())}")
300+
print(f"Order final result:\n{pformat(cowswap_result.final_status_reply)}")
301301
print(f"All ok, check the vault at https://routescan.io/{vault.address}")
302302
else:
303303
print(f"Order failed - not sure why:\n{pformat(cowswap_result.final_status_reply)}")

tests/erc_4626/test_scan.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
JSON_RPC_BASE = os.environ.get("JSON_RPC_BASE")
2222

23-
pytestmark = pytest.mark.skipif(JSON_RPC_BASE is None, reason="JSON_RPC_BASE needed to run these tests")
23+
HYPERSYNC_API_KEY = os.environ.get("HYPERSYNC_API_KEY")
24+
25+
pytestmark = pytest.mark.skipif(JSON_RPC_BASE is None or HYPERSYNC_API_KEY is None, reason="JSON_RPC_BASE needed to run these tests")
2426

2527

2628
@pytest.fixture(scope="module")
@@ -116,6 +118,7 @@ def test_lead_scan_core_hypersync(tmp_path, backend):
116118
start_block=2_000_000,
117119
end_block=2_500_000,
118120
backend=backend,
121+
hypersync_api_key=HYPERSYNC_API_KEY,
119122
)
120123
assert isinstance(report, LeadScanReport)
121124
match backend:

0 commit comments

Comments
 (0)