We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f748ab commit cae7378Copy full SHA for cae7378
decide/postproc/tests.py
@@ -275,4 +275,19 @@ def testParidadCorrecto3(self):
275
276
values = response.json()
277
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
+ }
293
0 commit comments