forked from TrueCloudLab/frostfs-testlib
Vladimir Domnich
f6ee129354
Also added two simple reporters that can be used by the shell to report command execution details. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
21 lines
449 B
Python
21 lines
449 B
Python
from contextlib import AbstractContextManager, contextmanager
|
|
from typing import Any
|
|
|
|
from .interfaces import Reporter
|
|
|
|
|
|
@contextmanager
|
|
def _dummy_step():
|
|
yield
|
|
|
|
|
|
class DummyReporter(Reporter):
|
|
"""
|
|
Dummy implementation of reporter, does not store artifacts anywhere.
|
|
"""
|
|
|
|
def step(self, name: str) -> AbstractContextManager:
|
|
return _dummy_step()
|
|
|
|
def attach(self, content: Any, file_name: str) -> None:
|
|
pass
|