mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 08:48:11 +08:00
allow cellxgene datasets urls to have a trailing slash or not. (#2028)
#550
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user