frostfs-testcases/pytest_tests/testsuites/object/conftest.py

10 lines
244 B
Python
Raw Normal View History

2024-06-04 15:24:21 +00:00
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