We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6248956 + 5f42989 commit cc6c618Copy full SHA for cc6c618
tests/conftest.py
@@ -60,7 +60,7 @@ class Flask(_Flask):
60
61
@pytest.fixture
62
def app():
63
- app = Flask(__name__)
+ app = Flask('flask_test', root_path=os.path.dirname(__file__))
64
return app
65
66
tests/test_appctx.py
@@ -215,5 +215,5 @@ def teardown_app(error=None):
215
except ZeroDivisionError:
216
pass
217
218
- assert called == ['conftest', 'TEARDOWN']
+ assert called == ['flask_test', 'TEARDOWN']
219
assert not flask.current_app
0 commit comments