Skip to content

Commit

Permalink
change name of environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
fhenneke committed Oct 9, 2024
1 parent c66f006 commit dfde186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 0 additions & 4 deletions tests/e2e/test_imbalances_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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(
Expand Down

0 comments on commit dfde186

Please sign in to comment.