From bc88e8eb9e874c2c59f1d7e10fa6180dab8492f6 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Tue, 4 Jun 2024 19:22:59 +0300 Subject: [PATCH] [#244] Fix test policies --- pytest_tests/testsuites/object/conftest.py | 9 --------- pytest_tests/testsuites/object/test_object_api.py | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) delete mode 100644 pytest_tests/testsuites/object/conftest.py diff --git a/pytest_tests/testsuites/object/conftest.py b/pytest_tests/testsuites/object/conftest.py deleted file mode 100644 index 9898f50..0000000 --- a/pytest_tests/testsuites/object/conftest.py +++ /dev/null @@ -1,9 +0,0 @@ -import pytest -from frostfs_testlib.storage.dataclasses.policy import PlacementPolicy - - -@pytest.fixture() -def expected_object_copies(placement_policy: PlacementPolicy) -> int: - if placement_policy.name == "rep": - return 2 - return 4 diff --git a/pytest_tests/testsuites/object/test_object_api.py b/pytest_tests/testsuites/object/test_object_api.py index dfbeceb..4fed2b9 100755 --- a/pytest_tests/testsuites/object/test_object_api.py +++ b/pytest_tests/testsuites/object/test_object_api.py @@ -139,6 +139,13 @@ def storage_objects( delete_objects(storage_objects, client_shell, cluster) +@pytest.fixture() +def expected_object_copies(placement_policy: PlacementPolicy) -> int: + if placement_policy.name == "rep": + return 2 + return 4 + + @pytest.mark.sanity @pytest.mark.grpc_api class TestObjectApi(ClusterTestBase):