about summary refs log tree commit diff
path: root/test/python
diff options
context:
space:
mode:
authorPjotr Prins <pjotr.public01@thebird.nl>2026-10-03 12:05:29 +0000
committerPjotr <wrk@bosa.lan>2026-10-03 12:05:29 +0000
commitc379119d85dc23f855dee005856576cac38126c8 (patch)
tree3bd5a7031c4c1762da2a1c6fdc4c26dbfd9e10cf /test/python
parent5f1e5c56370cd54a84ab8717179d3f5a37440b1e (diff)
downloadgenenetwork4-c379119d85dc23f855dee005856576cac38126c8.tar.gz
Assert mouse and rat are present in /species.
* tests/species.rs (species_returns_ok_with_species_list): Assert the
returned names include mouse and rat, which are always present in the
database.
* test/python/test_species.py (test_species_returns_ok_with_species_list):
Likewise.
Diffstat (limited to 'test/python')
-rw-r--r--test/python/test_species.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/python/test_species.py b/test/python/test_species.py
index 373b286..f739d98 100644
--- a/test/python/test_species.py
+++ b/test/python/test_species.py
@@ -39,6 +39,11 @@ class SpeciesTest(ServerTestCase):
             self.assertIn("name", record)
             self.assertIn("family", record)
 
+        # mouse and rat are always present in the database.
+        names = {record["name"] for record in species}
+        self.assertIn("mouse", names)
+        self.assertIn("rat", names)
+
 
 if __name__ == "__main__":
     unittest.main()