diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 1f54b20..f4fae94 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -28,4 +28,4 @@ jobs: - name: Tests run: pytest tests/e2e/test_blockchain_data.py tests/e2e/test_imbalances_script.py env: - NODE_URL: ${{ secrets.NODE_URL }} + NODE_URL: ${{ secrets.ETHEREUM_NODE_URL }} diff --git a/tests/e2e/test_imbalances_script.py b/tests/e2e/test_imbalances_script.py index e5d077e..dfbaa34 100644 --- a/tests/e2e/test_imbalances_script.py +++ b/tests/e2e/test_imbalances_script.py @@ -10,7 +10,6 @@ def set_env_variables(monkeypatch): with patch.dict(environ, clear=True): envvars = { "CHAIN_SLEEP_TIME": "1", - "NODE_URL": getenv("NODE_URL"), } for k, v in envvars.items(): monkeypatch.setenv(k, v) @@ -21,9 +20,6 @@ def tests_process_single_transaction(set_env_variables): # import has to happen after patching environment variable from src.imbalances_script import RawTokenImbalances - if getenv("NODE_URL") is None: - assert False - web3 = Web3(Web3.HTTPProvider(getenv("NODE_URL"))) raw_imbalances = RawTokenImbalances(web3, "mainnet") imbalances = raw_imbalances.compute_imbalances(