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

Testing | Sample exception + permission | Check response headers and problem code #4

Open
shivanshs9 opened this issue Jun 26, 2019 · 0 comments

Comments

@shivanshs9
Copy link
Owner

Code a sample view which uses permissions derived from BaseProblemPermission class and throws a registered exception. Write tests with this view to test the following behaviors:

  • When the permission passes, content type is "application/json".
  • When the permission fails, content type is "application/problem+json" and the problem code is the same as the one declared in the registered exception with the permission.
@shivanshs9 shivanshs9 added this to the CSOC Week 4 milestone Jun 26, 2019
@shivanshs9 shivanshs9 removed this from the CSOC Week 4 milestone Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant