Skip to content

Commit cae7378

Browse files
committed
Test: Creación test d'Hondt; EGCETSII#27
1 parent 6f748ab commit cae7378

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

decide/postproc/tests.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,19 @@ def testParidadCorrecto3(self):
275275

276276
values = response.json()
277277
self.assertEqual(values, expected_result)
278+
279+
def test_dhondt(self):
280+
281+
data = {
282+
"type": "DHONDT",
283+
"seats": 8,
284+
"options": [
285+
{ "option": "Option 1", "number": 1, "votes": 5 },
286+
{ "option": "Option 2", "number": 2, "votes": 0 },
287+
{ "option": "Option 3", "number": 3, "votes": 3 },
288+
{ "option": "Option 4", "number": 4, "votes": 2 },
289+
{ "option": "Option 5", "number": 5, "votes": 5 },
290+
{ "option": "Option 6", "number": 6, "votes": 1 },
291+
]
292+
}
278293

0 commit comments

Comments
 (0)