Skip to content

Commit

Permalink
Fix test (after rebase)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 5, 2024
1 parent 1e268c1 commit 9c1477c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rdmo/projects/tests/test_viewset_project_navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_navigation_get(db, client, username, password, project_id):
if project_id in view_progress_permission_map.get(username, []):
catalog_elements = project.catalog.elements
for section in sections:
url = reverse(urlnames['navigation'], args=[project_id, section.id])
url = reverse(urlnames['navigation'], args=[project_id]) + f'{section.id}/'
response = client.get(url)
assert response.status_code == 200
data = response.json()
Expand All @@ -60,7 +60,8 @@ def test_navigation_get(db, client, username, password, project_id):

else:
if sections:
url = reverse(urlnames['navigation'], args=[project_id, sections[0].id])
section_id = sections[0].id
url = reverse(urlnames['navigation'], args=[project_id]) + f'{section_id}/'
response = client.get(url)
if password:
assert response.status_code == 404
Expand Down

0 comments on commit 9c1477c

Please sign in to comment.