diff --git a/.readthedocs.yml b/.readthedocs.yml index c717d9f..6127f7f 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -13,4 +13,6 @@ build: python: install: - - requirements: docs/requirements.txt \ No newline at end of file + - requirements: docs/requirements.txt + - method: pip + path: . diff --git a/test/test_worms.py b/test/test_worms.py index 6a64b9c..1ffc78a 100644 --- a/test/test_worms.py +++ b/test/test_worms.py @@ -46,6 +46,12 @@ def test_get_descendants_names(self): descendants = worms.get_descendants_names('Bathochordaeus') self.assertIsNotNone(descendants) self.assertIn('Bathochordaeus charon', descendants) + + siph_all_descendants = worms.get_descendants_names('Siphonophorae', accepted=False) + siph_accepted_descendants = worms.get_descendants_names('Siphonophorae', accepted=True) + self.assertIsNotNone(siph_all_descendants) + self.assertIsNotNone(siph_accepted_descendants) + self.assertGreater(len(siph_all_descendants), len(siph_accepted_descendants)) siph_all_descendants = worms.get_descendants_names('Siphonophorae', accepted=False) siph_accepted_descendants = worms.get_descendants_names('Siphonophorae', accepted=True)