From 6ef82b36f191d100f25acaa5dd3a86e3f1a1f8a0 Mon Sep 17 00:00:00 2001 From: Andreas Eisenbarth Date: Wed, 12 Oct 2022 16:36:46 +0200 Subject: [PATCH] For running individual tests, make sure flask_util.view_url is callable --- tests/test_filecrawl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_filecrawl.py b/tests/test_filecrawl.py index 349d1cc..c5932e0 100644 --- a/tests/test_filecrawl.py +++ b/tests/test_filecrawl.py @@ -48,6 +48,12 @@ class TestRenderItemSource(unittest.TestCase): class TestRenderItemTree(unittest.TestCase): + def setUp(self): + from cellxgene_gateway.gateway import app + self.app = app + self.app_context = self.app.test_request_context() + self.app_context.push() + @patch("cellxgene_gateway.items.file.fileitem_source.FileItemSource") def test_GIVEN_deep_nested_dirs_THEN_includes_dirs_in_output(self, item_source): item_source.name = "FakeSource"