labgrid.pytestplugin package¶
Submodules¶
labgrid.pytestplugin.fixtures module¶
- labgrid.pytestplugin.fixtures.env(request, record_testsuite_property)[source]¶
Return the environment configured in the supplied configuration file. It contains the targets contained in the configuration file.
labgrid.pytestplugin.hooks module¶
labgrid.pytestplugin.reporter module¶
- class labgrid.pytestplugin.reporter.StepReporter(terminalreporter, *, rewrite=False)[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'labgrid.pytestplugin.reporter', '__init__': <function StepReporter.__init__>, '_StepReporter__reset': <function StepReporter.__reset>, '_StepReporter__commit': <function StepReporter.__commit>, '_StepReporter__merge_element': <function StepReporter.__merge_element>, '_StepReporter__format_elements': <function StepReporter.__format_elements>, 'notify': <function StepReporter.notify>, '_line_format': <function StepReporter._line_format>, 'pytest_runtest_logstart': <function StepReporter.pytest_runtest_logstart>, 'pytest_runtest_logreport': <function StepReporter.pytest_runtest_logreport>, '__dict__': <attribute '__dict__' of 'StepReporter' objects>, '__weakref__': <attribute '__weakref__' of 'StepReporter' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'labgrid.pytestplugin.reporter'¶
- __weakref__¶
list of weak references to the object (if defined)
- class labgrid.pytestplugin.reporter.ColoredStepReporter(terminalreporter, *, rewrite=False)[source]¶
Bases:
labgrid.pytestplugin.reporter.StepReporter
- EVENT_COLORS_DARK = {'cycle$|on$|off$': 'white', 'expect$': 'blue', 'run': 'magenta', 'state_': 'cyan', 'transition$': 'yellow'}¶
- EVENT_COLORS_LIGHT = {'cycle$|on$|off$': 'blue', 'expect$': 'white', 'run': 'magenta', 'state_': 'cyan', 'transition$': 'yellow'}¶
- EVENT_COLORS_DARK_256COLOR = {'cycle$|on$|off$': 246, 'expect$': 8, 'run': 129, 'state_': 51, 'transition$': 45}¶
- EVENT_COLORS_LIGHT_256COLOR = {'cycle$|on$|off$': 8, 'expect$': 250, 'run': 93, 'state_': 51, 'transition$': 45}¶
- EVENT_COLOR_SCHEMES = {'dark': {'cycle$|on$|off$': 'white', 'expect$': 'blue', 'run': 'magenta', 'state_': 'cyan', 'transition$': 'yellow'}, 'dark-256color': {'cycle$|on$|off$': 246, 'expect$': 8, 'run': 129, 'state_': 51, 'transition$': 45}, 'light': {'cycle$|on$|off$': 'blue', 'expect$': 'white', 'run': 'magenta', 'state_': 'cyan', 'transition$': 'yellow'}, 'light-256color': {'cycle$|on$|off$': 8, 'expect$': 250, 'run': 93, 'state_': 51, 'transition$': 45}}¶
- __annotations__ = {}¶
- __module__ = 'labgrid.pytestplugin.reporter'¶