From 33f86a5d4da9a50feed8c0235935b184313fa319 Mon Sep 17 00:00:00 2001 From: "dmitry.dygalo" Date: Wed, 2 May 2018 06:57:13 +0200 Subject: [PATCH] Inline variable --- tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2c19c763..2667e757 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -60,8 +60,7 @@ class Flask(_Flask): @pytest.fixture def app(): - app = Flask('flask_test', root_path=os.path.dirname(__file__)) - return app + yield Flask('flask_test', root_path=os.path.dirname(__file__)) @pytest.fixture