Skip to content

Commit

Permalink
Fix test url
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 8, 2023
1 parent 890be10 commit cfb5258
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions competition/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ def test_get_competition_list(self):

def test_get_competition_detail(self):
'''detail format OK'''
response = self.client.get(self.URL_PREFIX + '/strom', {}, 'json')
response = self.client.get(self.URL_PREFIX + '/slug/strom', {}, 'json')
self.assertEqual(response.status_code, 200)
self.competition_assert_format(response.json(), 0)

response = self.client.get(self.URL_PREFIX + '/matik', {}, 'json')
response = self.client.get(self.URL_PREFIX + '/slug/matik', {}, 'json')
self.assertEqual(response.status_code, 200)
self.competition_assert_format(response.json(), 1)

Expand All @@ -331,12 +331,12 @@ def test_permission_list(self):

def test_permission_get(self):
'''retrieve permission OK'''
self.check_permissions(self.URL_PREFIX + '/strom/',
self.check_permissions(self.URL_PREFIX + '/slug/strom/',
'GET', self.PUBLIC_OK_RESPONSES)

def test_permission_update(self):
''' update permission OK'''
self.check_permissions(self.URL_PREFIX + '/strom/', 'PUT',
self.check_permissions(self.URL_PREFIX + '/slug/strom/', 'PUT',
self.ONLY_STROM_OK_RESPONSES,
{
"id": 0,
Expand Down

0 comments on commit cfb5258

Please sign in to comment.