Skip to content

Commit

Permalink
Please accept this humble offering, Lord Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nspope committed Sep 17, 2022
1 parent 1eae8e7 commit 9f7ac79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f7ac79

Please sign in to comment.