From 7767cc4a730d84e1acc623205af8b4b508f66a1d Mon Sep 17 00:00:00 2001 From: "Kevin R. Thornton" Date: Tue, 16 Jul 2024 15:18:01 -0700 Subject: [PATCH] Add assertion to failing test to tell us what to work on next --- tests/test_conditional_simulations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_conditional_simulations.py b/tests/test_conditional_simulations.py index 38d06b17d..94e740f68 100644 --- a/tests/test_conditional_simulations.py +++ b/tests/test_conditional_simulations.py @@ -217,6 +217,7 @@ def test_sweep_from_new_mutation_using_API( assert output.num_descendant_nodes == 1 assert output.pop.generation > pop.generation if output.pop is not None: + assert output.mutation_index is not None assert output.pop.mcounts[output.mutation_index] == 2 * output.pop.N _ = output.pop.dump_tables_to_tskit() if output.pop.fixation_times[output.mutation_index] < output.pop.generation: