frostfs-testlib/src/neofs_testlib/reporter/__init__.py
Vladimir Domnich f5cd6a1954 [#3] Move source code of testlib to src directory
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-28 13:10:35 +04:00

14 lines
518 B
Python

import os
from neofs_testlib.reporter.allure_reporter import AllureReporter
from neofs_testlib.reporter.dummy_reporter import DummyReporter
from neofs_testlib.reporter.interfaces import Reporter
def get_reporter() -> Reporter:
# TODO: in scope of reporter implementation task here we will have extendable
# solution for configuring and providing reporter for the library
if os.getenv("TESTLIB_REPORTER_TYPE", "DUMMY") == "DUMMY":
return DummyReporter()
else:
return AllureReporter()