Merge branch 'master' of gitlab.prodcontest.ru:team-15/project

This commit is contained in:
ITQ
2025-03-02 08:57:35 +03:00
6 changed files with 50 additions and 22 deletions
+6 -2
View File
@@ -154,8 +154,12 @@ class CompetitionsEndpointTests(TestCase):
self.get_url("is_participating=true"), **self.valid_headers
)
for item in response.json():
self.assertEqual(item["type"], "competitive")
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):
response = self.client.get(