Skip to content

Commit

Permalink
test: flakey test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 12, 2023
1 parent 3b507e3 commit 8893ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
url="https://github.com/ApeWorX/ape-alchemy",
include_package_data=True,
install_requires=[
"eth-ape", # >=0.7.0,<0.8",
"eth-ape>=0.7.0,<0.8",
"eth-pydantic-types", # Get eth-pydantic-types version from ape
"ethpm-types", # Get ethpm-types version from ape
"evm-trace", # Get evm-trace version from ape
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ def networks():


@pytest.fixture
def missing_token(mocker):
def missing_token(alchemy_provider, mocker):
env = os.environ.copy()
mock = mocker.patch("os.environ.get")

def side_effect(key, *args, **kwargs):
return None if "WEB3" in key else env.get(key, *args, **kwargs)

alchemy_provider.network_uris = {}
mock.side_effect = side_effect
return mock

Expand Down

0 comments on commit 8893ef7

Please sign in to comment.