userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
colors.py
1
import
pytest
2
3
from
testsuite.utils
import
colors
4
5
6
class
ColorsPlugin
:
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
15
def
pytest_configure(config):
16
config.pluginmanager.register(
17
ColorsPlugin
(config=config),
18
'_colors_plugin'
,
19
)
en
testsuite
plugins
colors.py
Generated on
for userver by
Doxygen
1.17.0