tests: switch default log-level to critical to not spam during tests.
This commit is contained in:
parent
82894a87fa
commit
2abe485d6c
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ def _parse_json(value):
|
|||
def pytest_addoption(parser):
|
||||
parser.addoption(
|
||||
'--test-loglevel', dest='test_loglevel',
|
||||
help="Set default Logging level for tests, warn (default), info, debug")
|
||||
help="Set default Logging level for tests, critical(default), error, warn , info, debug")
|
||||
group = parser.getgroup('pylons')
|
||||
group.addoption(
|
||||
'--with-pylons', dest='pyramid_config',
|
||||
|
|
@ -151,7 +151,7 @@ def is_cygwin():
|
|||
|
||||
|
||||
def _use_log_level(config):
|
||||
level = config.getoption('test_loglevel') or 'warn'
|
||||
level = config.getoption('test_loglevel') or 'critical'
|
||||
return level.upper()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue