frostfs-testlib/reporter/dummy_reporter.py
Vladimir Domnich d3e5ee2231 Implement basic version of ssh shell
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-09 17:53:36 +03:00

21 lines
457 B
Python

from contextlib import AbstractContextManager, contextmanager
from typing import Any
from reporter.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