2022-08-24 15:01:07 +00:00
|
|
|
from contextlib import AbstractContextManager, contextmanager
|
|
|
|
from typing import Any
|
|
|
|
|
2022-08-24 11:41:11 +00:00
|
|
|
from reporter.interfaces import Reporter
|
2022-08-24 15:01:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
@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
|