From c379119d85dc23f855dee005856576cac38126c8 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 3 Oct 2026 12:05:29 +0000 Subject: 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. --- test/python/test_species.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/python') 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() -- cgit 1.4.1