From a67527d6af94a2e806e180be7a289aaa3ff60894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 30 Aug 2018 18:28:17 +0200 Subject: [PATCH] Use app_context() instead of test_request_context() There is no request context needed here. --- pillar/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillar/tests/__init__.py b/pillar/tests/__init__.py index b7f2c196..1baae624 100644 --- a/pillar/tests/__init__.py +++ b/pillar/tests/__init__.py @@ -187,7 +187,7 @@ class AbstractPillarTest(TestMinimal): else: self.ensure_project_exists() - with self.app.test_request_context(): + with self.app.app_context(): files_collection = self.app.data.driver.db['files'] assert isinstance(files_collection, pymongo.collection.Collection)