Browse Source

restore the logging plugin only if it was active to begin with

pull/2554/head
Camilo 7 years ago
parent
commit
33fa580947
  1. 3
      tests/test_logging.py

3
tests/test_logging.py

@ -29,7 +29,8 @@ def reset_logging(monkeypatch):
logger.handlers = []
logger.setLevel(logging.NOTSET)
pytest.config.pluginmanager.register(logging_plugin, 'logging-plugin')
if logging_plugin:
pytest.config.pluginmanager.register(logging_plugin, 'logging-plugin')
def test_logger(app):

Loading…
Cancel
Save