Conditions | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """Unit tests configuration file.""" |
||
4 | def pytest_configure(config): |
||
5 | """Disable verbose output when running tests.""" |
||
6 | terminal = config.pluginmanager.getplugin('terminal') |
||
7 | base = terminal.TerminalReporter |
||
8 | |||
9 | class QuietReporter(base): |
||
10 | """A py.test reporting that only shows dots when running tests.""" |
||
11 | |||
12 | def __init__(self, *args, **kwargs): |
||
13 | super().__init__(*args, **kwargs) |
||
14 | self.verbosity = 0 |
||
15 | self.showlongtestinfo = False |
||
16 | self.showfspath = False |
||
17 | |||
18 | terminal.TerminalReporter = QuietReporter |
||
19 |