diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 21:01:40 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2026-10-07 21:01:40 +0300 |
| commit | 85b63abcfdbae235d292a6de4bd47ffe6ba6dafd (patch) | |
| tree | 8b39f26fad90eaa27751fd061ab1cbc91ae95b08 /test/python/test_dataset_probesets.py | |
| parent | b68531c40d91cadfd868e4b65ff92989ffd4fb27 (diff) | |
| parent | e912c87deaf220fd5fce1299d669e8fa992b5338 (diff) | |
| download | genenetwork4-85b63abcfdbae235d292a6de4bd47ffe6ba6dafd.tar.gz | |
Merge origin/main (e912c87: /search gains lod, locus, sort/order) into
native-search-engine. Resolution: his route-level additions compose above the engine seam — the handler now validates sort/order, asks the engine for SORT_FETCH_LIMIT (1000) when ranking, maps SearchError via the seam's engine_error, then computes lod, sorts, truncates to limit and fills loci; lod/locus join SearchHit in src/search/mod.rs. His tests pass through the seam. KNOWN at this commit: the parity floor is BLOCKED (36 shapes) — the route's new truncate(limit) exposes that route-level full-set grading was a calibration-stub artifact (real gn3 caps at per_page; the stub ignored it). Harness fix queued: set-equality moves to engine level, status + top-10 stay route level. Landed together with that fix.
Diffstat (limited to 'test/python/test_dataset_probesets.py')
| -rw-r--r-- | test/python/test_dataset_probesets.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/python/test_dataset_probesets.py b/test/python/test_dataset_probesets.py index dcfcd99..c12b42a 100644 --- a/test/python/test_dataset_probesets.py +++ b/test/python/test_dataset_probesets.py @@ -89,6 +89,25 @@ class DatasetProbesetsTest(ServerTestCase): error = json.loads(body) self.assertEqual(error["code"], "forbidden") + def test_dataset_probesets_recent_non_public_dataset_returns_403(self): + """Same as above, but with a dataset genuinely less than a year + old (UTHSC_BXD_Cochlea_0225 above is real but was already ~20 + months old by the time this test was written) -- the age-embargo + rule and the "not yet linked to any gn-auth resource" deny path + both need to hold for freshly-added data, not just for something + that merely hasn't aged into public yet. + UTHSC_BXD_2wk_Cochlea_0926 (public=1, confidentiality=1, created + 2026-09-01) is the most recently added ProbeSetFreeze in the + database as of this writing. + """ + self.require_fixtures() + + response, body = self.get("/datasets/UTHSC_BXD_2wk_Cochlea_0926/probesets") + self.assertEqual(response.status, 403) + + error = json.loads(body) + self.assertEqual(error["code"], "forbidden") + if __name__ == "__main__": unittest.main() |
