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)