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