Skip to content

Commit

Permalink
update scot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cdonnay committed Jul 11, 2024
1 parent 9fa6d2e commit 5883dc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def test_scot_csv_parse():

assert seats == 1
assert isinstance(pp, PreferenceProfile)
assert set(["Paul", "George", "Ringo"]) == set(pp.get_candidates())
assert len(pp.get_candidates()) == 3
assert cand_list == ["Paul", "George", "Ringo"]
assert cand_to_party == {
"Paul": "Orange (O)",
Expand Down Expand Up @@ -194,6 +196,8 @@ def test_scot_csv_blank_rows():

assert seats == 1
assert isinstance(pp, PreferenceProfile)
assert set(["Paul", "George", "Ringo"]) == set(pp.get_candidates())
assert len(pp.get_candidates()) == 3
assert cand_list == ["Paul", "George", "Ringo"]
assert cand_to_party == {
"Paul": "Orange (O)",
Expand Down

0 comments on commit 5883dc5

Please sign in to comment.