Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Make new tests for user auth in backend #66

Open
sjsivert opened this issue Oct 21, 2018 · 1 comment
Open

Make new tests for user auth in backend #66

sjsivert opened this issue Oct 21, 2018 · 1 comment
Labels

Comments

@sjsivert
Copy link
Member

Tests to be rewritten:

test_exact_motive_search_retrieves_single_image
test_admin_user_can_see_all_photos
test_fg_user_can_see_all_photos
test_husfolk_user_can_only_see_husfolk_and_alle
test_power_user_can_see_husfolk_and_alle
test_anon_user_can_only_see_alle

@sjsivert
Copy link
Member Author

sjsivert commented Jan 9, 2019

seed.sh failer nå med feilmelding:
self.code(from_state.apps, schema_editor) File "/django/fg/api/migrations/dev_seed.py", line 114, in populate_users fg_user = User.objects.get(username='fg') File "/usr/local/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/django/db/models/query.py", line 399, in get self.model._meta.object_name __fake__.DoesNotExist: User matching query does not exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant