diff --git a/__init__.py b/__init__.py index 4a2630d8..e69de29b 100644 --- a/__init__.py +++ b/__init__.py @@ -1,3 +0,0 @@ -import os - -TESTS_BASE_PATH = os.path.dirname(os.path.relpath(__file__)) diff --git a/pytest_tests/__init__.py b/pytest_tests/__init__.py index e69de29b..4a2630d8 100644 --- a/pytest_tests/__init__.py +++ b/pytest_tests/__init__.py @@ -0,0 +1,3 @@ +import os + +TESTS_BASE_PATH = os.path.dirname(os.path.relpath(__file__)) diff --git a/pytest_tests/resources/common.py b/pytest_tests/resources/common.py index 38cef385..83e8e837 100644 --- a/pytest_tests/resources/common.py +++ b/pytest_tests/resources/common.py @@ -1,8 +1,8 @@ import os -from ... import TESTS_BASE_PATH +from .. import TESTS_BASE_PATH TEST_CYCLES_COUNT = int(os.getenv("TEST_CYCLES_COUNT", "1")) DEVENV_PATH = os.getenv("DEVENV_PATH", os.path.join("..", "frostfs-dev-env")) -S3_POLICY_FILE_LOCATION = os.path.join(TESTS_BASE_PATH, "pytest_tests/resources/files/policy.json") +S3_POLICY_FILE_LOCATION = os.path.join(TESTS_BASE_PATH, "resources/files/policy.json")