remove deprecated code

This commit is contained in:
David Lord 2020-04-03 17:34:32 -07:00
parent 8433de53c9
commit 8cf6480f91
9 changed files with 0 additions and 198 deletions

View file

@ -104,12 +104,3 @@ def test_log_view_exception(app, client):
err = stream.getvalue()
assert "Exception on / [GET]" in err
assert "Exception: test" in err
def test_warn_old_config(app, request):
old_logger = logging.getLogger("flask.app")
old_logger.setLevel(logging.DEBUG)
request.addfinalizer(lambda: old_logger.setLevel(logging.NOTSET))
with pytest.warns(UserWarning):
assert app.logger.getEffectiveLevel() == logging.WARNING