From 4746bfea2135e6555558475bbcba4c3217997056 Mon Sep 17 00:00:00 2001 From: GnP Date: Wed, 4 Dec 2024 10:30:58 -0300 Subject: [PATCH] Move test utils inside the package, they can be useful elsewhere --- src/ethproto/test_utils/__init__.py | 0 {tests => src/ethproto/test_utils}/factories.py | 0 {tests => src/ethproto/test_utils}/vcr_utils.py | 0 tests/conftest.py | 2 +- tests/test_aa_bundler.py | 3 +-- 5 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 src/ethproto/test_utils/__init__.py rename {tests => src/ethproto/test_utils}/factories.py (100%) rename {tests => src/ethproto/test_utils}/vcr_utils.py (100%) diff --git a/src/ethproto/test_utils/__init__.py b/src/ethproto/test_utils/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/factories.py b/src/ethproto/test_utils/factories.py similarity index 100% rename from tests/factories.py rename to src/ethproto/test_utils/factories.py diff --git a/tests/vcr_utils.py b/src/ethproto/test_utils/vcr_utils.py similarity index 100% rename from tests/vcr_utils.py rename to src/ethproto/test_utils/vcr_utils.py diff --git a/tests/conftest.py b/tests/conftest.py index 2722ae4..90521a1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,7 +10,7 @@ from web3.auto import w3 from web3.middleware import ExtraDataToPOAMiddleware -from . import vcr_utils +from ethproto.test_utils import vcr_utils def pytest_configure(config): diff --git a/tests/test_aa_bundler.py b/tests/test_aa_bundler.py index db1cb96..57f3d7e 100644 --- a/tests/test_aa_bundler.py +++ b/tests/test_aa_bundler.py @@ -9,8 +9,7 @@ from web3.constants import HASH_ZERO from ethproto import aa_bundler - -from . import factories +from ethproto.test_utils import factories def test_pack_two():