From 5f42989ce31e90b8de9d733109c7e285de8237c7 Mon Sep 17 00:00:00 2001 From: David Lord Date: Wed, 28 Feb 2018 06:50:49 -0800 Subject: [PATCH] don't use Flask(__name__) in conftest --- tests/conftest.py | 2 +- tests/test_appctx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 7b01d864..2c19c763 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -60,7 +60,7 @@ class Flask(_Flask): @pytest.fixture def app(): - app = Flask(__name__) + app = Flask('flask_test', root_path=os.path.dirname(__file__)) return app diff --git a/tests/test_appctx.py b/tests/test_appctx.py index 5121c4a2..678bf510 100644 --- a/tests/test_appctx.py +++ b/tests/test_appctx.py @@ -215,5 +215,5 @@ def test_clean_pop(app): except ZeroDivisionError: pass - assert called == ['conftest', 'TEARDOWN'] + assert called == ['flask_test', 'TEARDOWN'] assert not flask.current_app