mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
rewrite test_competition_type_values test
This commit is contained in:
@@ -157,7 +157,11 @@ class CompetitionsEndpointTests(TestCase):
|
||||
self.get_url("is_participating=true"), **self.valid_headers
|
||||
)
|
||||
|
||||
for item in response.json():
|
||||
for i in range(len(response.json())):
|
||||
item = response.json()[i]
|
||||
if (i + 1) % 2 == 0:
|
||||
self.assertEqual(item["type"], "edu")
|
||||
else:
|
||||
self.assertEqual(item["type"], "competitive")
|
||||
|
||||
def test_participation_type_values(self):
|
||||
|
||||
Reference in New Issue
Block a user