userver: en/testsuite/plugins/colors.py Source File
Loading...
Searching...
No Matches
colors.py
1import pytest
2
3from testsuite.utils import colors
4
5
7 def __init__(self, config):
8 self._colors_enabled = colors.should_enable_color(config)
9
10 @pytest.fixture(scope='session')
11 def testsuite_colors_enabled(self) -> bool:
12 return self._colors_enabled
13
14
15def pytest_configure(config):
16 config.pluginmanager.register(
17 ColorsPlugin(config=config),
18 '_colors_plugin',
19 )