You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In gardens/tests.py, both test_gardens_query and test_incorrect_gardens_query_throws_error pass because calling the query throws an error, because the default user associated with the query is anonymous (and is not is_staff or is_superuser. Please mock a client or response that has a superuser or staff user as the requester, and pass it in as context so that the query will not throw an error.
Type
Feature request
Problem or To-Do
In
gardens/tests.py
, bothtest_gardens_query
andtest_incorrect_gardens_query_throws_error
pass because calling the query throws an error, because the default user associated with the query is anonymous (and is notis_staff
oris_superuser
. Please mock a client or response that has a superuser or staff user as the requester, and pass it in as context so that the query will not throw an error.Additional Information
Please see here and here
The text was updated successfully, but these errors were encountered: