From 9f7ac79c156ca88ca3d9720a6aba1a5808930688 Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Sat, 17 Sep 2022 15:01:14 -0700 Subject: [PATCH] Please accept this humble offering, Lord Codecov --- tests/test_models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_models.py b/tests/test_models.py index 7021f87e9..fe9ca68b7 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -307,6 +307,8 @@ def test_get_sample_sets(self): # Check for error when prohibited sampling asked for with pytest.raises(ValueError, match="non-sampling population"): base_mod.get_sample_sets({"pop0": 2, "pop1": 2, "pop2": 1}, ploidy=1) + # OK if prohibited population has 0 requested samples + base_mod.get_sample_sets({"pop0": 2, "pop1": 2, "pop2": 0}, ploidy=1) # Check for error with nonexistant population with pytest.raises(ValueError, match="is not one of the populations"): base_mod.get_sample_sets({"pop0": 2, "pop1": 2, "nonexistant": 1}, ploidy=1)