Merge pull request #2646 from pallets/test-app-name
don't use Flask(__name__) in conftest
This commit is contained in:
commit
cc6c618f4d
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue