Skip to content

Commit

Permalink
update pytest-asyncio version
Browse files Browse the repository at this point in the history
  • Loading branch information
Elnaril committed Oct 15, 2024
1 parent 62bb656 commit 02bc85e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[pytest]
asyncio_mode = auto
asyncio_default_fixture_loop_scope = session
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ flake8
isort
mypy
pytest
pytest-asyncio
pytest-asyncio >= 0.24.0
tox

build
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ def event_loop(): # a bit of magic
loop.close()


@pytest.fixture
@pytest.fixture(scope="session")
def rpc_endpoint():
return os.environ["RPC_ENDPOINT"]


@pytest.fixture
@pytest.fixture(scope="session")
def w3(rpc_endpoint):
return AsyncWeb3(AsyncWeb3.AsyncHTTPProvider(rpc_endpoint))


@pytest.fixture
@pytest.fixture(scope="session")
def uniswapv2_address():
return AsyncWeb3.to_checksum_address("0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D")


@pytest.fixture
@pytest.fixture(scope="session")
def uniswapv3_quoter_address():
return AsyncWeb3.to_checksum_address("0x61fFE014bA17989E743c5F6cB21bF9697530B21e")

0 comments on commit 02bc85e

Please sign in to comment.