Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up tests and permissions on RenewBookInstancesViewTest #76

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

hamishwillee
Copy link
Collaborator

The test case for RenewBookInstancesViewTest.test_redirect_if_logged_in_but_not_correct_permission was returning 302 and redirecting to login URL. This is inconsistent vs the Author create and "logic" - i.e.:

  • if you aren't logged in you go to a login URL,
  • if you are logged in and you don't have permission you go to a 403 (forbidden)

This sets permissions correctly for the above and fixes the tests to match it.

Fixes #66

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

Successfully merging this pull request may close these issues.

Discrepancy in test_views RE permission error tests
1 participant