forked from TrueCloudLab/frostfs-testlib
Allow to parametrize tests with placement policy. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
13 lines
217 B
Python
13 lines
217 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class PlacementPolicy:
|
|
name: str
|
|
value: str
|
|
|
|
def __str__(self) -> str:
|
|
return self.name
|
|
|
|
def __repr__(self) -> str:
|
|
return self.__str__()
|