Browse Source

don't use Flask(__name__) in conftest

pull/2646/head
David Lord 7 years ago
parent
commit
5f42989ce3
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 2
      tests/conftest.py
  2. 2
      tests/test_appctx.py

2
tests/conftest.py

@ -60,7 +60,7 @@ class Flask(_Flask):
@pytest.fixture @pytest.fixture
def app(): def app():
app = Flask(__name__) app = Flask('flask_test', root_path=os.path.dirname(__file__))
return app return app

2
tests/test_appctx.py

@ -215,5 +215,5 @@ def test_clean_pop(app):
except ZeroDivisionError: except ZeroDivisionError:
pass pass
assert called == ['conftest', 'TEARDOWN'] assert called == ['flask_test', 'TEARDOWN']
assert not flask.current_app assert not flask.current_app

Loading…
Cancel
Save