Skip to content

Commit

Permalink
DEV: generalise the build_tree tests to rooted topologies
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcar17 committed Aug 22, 2024
1 parent 0045a02 commit 79de514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_iqtree/test_build_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def test_build_tree(four_otu, dna_model, freq_type, invariable_sites, rate_model
)

got1 = piqtree2.build_tree(four_otu, model, rand_seed=1)
assert expected.same_topology(got1)
got1 = got1.unrooted()
assert expected.same_topology(got1.unrooted())

# Should be similar for any seed
got2 = piqtree2.build_tree(four_otu, model, rand_seed=None)
got2 = got2.unrooted()
assert expected.same_topology(got2)

0 comments on commit 79de514

Please sign in to comment.