#78 Revert "Rename argument "filter" to "subpath""

This reverts commit fdd6cca297.
This commit is contained in:
Alok Saldanha
2023-07-09 08:25:27 -04:00
parent 6607b15085
commit 624d1f8567
7 changed files with 25 additions and 16 deletions
+10 -2
View File
@@ -51,6 +51,7 @@ 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()
@@ -72,9 +73,16 @@ class TestRenderItemTree(unittest.TestCase):
"</li></ul></li>",
)
@patch("os.listdir", side_effect=lambda parent: defaultdict(list, {"tmp": ["foo"], "tmp/foo": ["bar"]})[parent])
@patch(
"os.listdir",
side_effect=lambda parent: defaultdict(
list, {"tmp": ["foo"], "tmp/foo": ["bar"]}
)[parent],
)
@patch("os.path.exists", return_value=True)
def test_GIVEN_dirs_without_h5ad_THEN_excludes_dirs_in_output(self, listdir, exists):
def test_GIVEN_dirs_without_h5ad_THEN_excludes_dirs_in_output(
self, listdir, exists
):
# Directories:
# - tmp
# - foo