From b389d34cac023caed5cebff59e53730bccef5b25 Mon Sep 17 00:00:00 2001 From: Austin Richardson Date: Fri, 20 Feb 2026 14:44:58 -0800 Subject: [PATCH] Add test for iterable taxonomy --- test_python.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_python.py b/test_python.py index c032d76..06f8bc6 100644 --- a/test_python.py +++ b/test_python.py @@ -425,6 +425,11 @@ def test_ncbi_prune(ncbi_tax: Taxonomy): assert new_tax.node("561") is not None +def test_taxonomy_is_iterable(ncbi_tax: Taxonomy): + for _ in ncbi_tax: + break + + @pytest.mark.skip(reason="tax.remove doesn't work on truncated taxonomies?") def test_ncbi_remove(): tax = Taxonomy.from_ncbi("tests/data/")