diff --git a/tests/test_filecrawl.py b/tests/test_filecrawl.py
index 1e3b768..349d1cc 100644
--- a/tests/test_filecrawl.py
+++ b/tests/test_filecrawl.py
@@ -1,7 +1,11 @@
import unittest
from unittest.mock import MagicMock, patch
-from cellxgene_gateway.filecrawl import render_item, render_item_source
+from cellxgene_gateway.filecrawl import (
+ render_item,
+ render_item_source,
+ render_item_tree,
+)
from cellxgene_gateway.items.file.fileitem import FileItem
from cellxgene_gateway.items.file.fileitem_source import FileItemSource
from cellxgene_gateway.items.item import ItemTree, ItemType
@@ -41,3 +45,15 @@ class TestRenderItemSource(unittest.TestCase):
rendered,
"
rootdir",
)
+
+
+class TestRenderItemTree(unittest.TestCase):
+ @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"
+ item_tree = ItemTree("foo/bar/baz", [], [])
+ rendered = render_item_tree(item_tree, item_source)
+ self.assertEqual(
+ rendered,
+ "baz",
+ )
diff --git a/tests/test_subprocess_backend.py b/tests/test_subprocess_backend.py
index 5c22dbf..62652bf 100644
--- a/tests/test_subprocess_backend.py
+++ b/tests/test_subprocess_backend.py
@@ -33,7 +33,7 @@ class TestSubprocessBackend(unittest.TestCase):
backend.launch(cellxgene_loc, scripts, entry)
popen.assert_called_once_with(
[
- "yes | /some/cellxgene launch /tmp/czi/pbmc3k.h5ad --port 8000 --host 127.0.0.1 --disable-annotations --scripts http://example.com/script.js --scripts http://example.com/script2.js"
+ "yes | /some/cellxgene launch /tmp/czi/pbmc3k.h5ad --port 8000 --host 127.0.0.1 --disable-annotations --disable-gene-sets-save --scripts http://example.com/script.js --scripts http://example.com/script2.js"
],
shell=True,
stderr=-1,