allow cellxgene datasets urls to have a trailing slash or not. (#2028)

#550
This commit is contained in:
bmccandless
2021-01-20 15:19:13 -08:00
committed by GitHub
parent d5ad823895
commit 90a4ff7526
3 changed files with 17 additions and 3 deletions
@@ -278,6 +278,14 @@ class TestServerConfig(ConfigTests):
response = session.get(f"{server}/health")
assert response.json()["status"] == "pass"
# access a dataset (no slash)
response = session.get(f"{server}/set2/pbmc3k.cxg")
self.assertEqual(response.status_code, 200)
# access a dataset (with slash)
response = session.get(f"{server}/set2/pbmc3k.cxg/")
self.assertEqual(response.status_code, 200)
@patch("server.common.config.server_config.diffexp_tiledb.set_config")
def test_handle_diffexp(self, mock_tiledb_config):
custom_config_file = self.custom_app_config(