Skip to content

Commit

Permalink
Test: Creación test d'Hondt; EGCETSII#27
Browse files Browse the repository at this point in the history
  • Loading branch information
isamunval committed Jan 6, 2022
1 parent 6f748ab commit cae7378
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions decide/postproc/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,19 @@ def testParidadCorrecto3(self):

values = response.json()
self.assertEqual(values, expected_result)

def test_dhondt(self):

data = {
"type": "DHONDT",
"seats": 8,
"options": [
{ "option": "Option 1", "number": 1, "votes": 5 },
{ "option": "Option 2", "number": 2, "votes": 0 },
{ "option": "Option 3", "number": 3, "votes": 3 },
{ "option": "Option 4", "number": 4, "votes": 2 },
{ "option": "Option 5", "number": 5, "votes": 5 },
{ "option": "Option 6", "number": 6, "votes": 1 },
]
}

0 comments on commit cae7378

Please sign in to comment.