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,8 +157,12 @@ class CompetitionsEndpointTests(TestCase):
|
|||||||
self.get_url("is_participating=true"), **self.valid_headers
|
self.get_url("is_participating=true"), **self.valid_headers
|
||||||
)
|
)
|
||||||
|
|
||||||
for item in response.json():
|
for i in range(len(response.json())):
|
||||||
self.assertEqual(item["type"], "competitive")
|
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):
|
def test_participation_type_values(self):
|
||||||
response = self.client.get(
|
response = self.client.get(
|
||||||
|
|||||||
Reference in New Issue
Block a user