Skip to content

Commit

Permalink
Fix migration and test (after rebase)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 25, 2024
1 parent 18949eb commit be2dea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('projects', '0060_alter_issue_options'),
('projects', '0061_alter_value_value_type'),
]

operations = [
Expand Down
2 changes: 1 addition & 1 deletion rdmo/projects/tests/test_viewset_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_list(db, client, username, password):
assert isinstance(response_data, dict)

if username == 'user':
assert sorted([item['id'] for item in response.json()]) == projects_internal
assert sorted([item['id'] for item in response.json().get('results')]) == projects_internal
else:
values_list = Project.objects.filter(id__in=view_project_permission_map.get(username, [])) \
.values_list('id', flat=True)
Expand Down

0 comments on commit be2dea7

Please sign in to comment.