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 view | Check response headers and problem code #3

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

Comments

@shivanshs9
Copy link
Owner

Write tests with a sample view to test all of the following behaviors:

  • When response HTTP status is 200, content type is "application/json".
  • When response HTTP status is 401, content type is "application/problem+json" and problem code is "not_authenticated".
  • When response HTTP status is 404, content type is "application/problem+json" and problem code is "not_found".
  • When response HTTP status is 500 (server error - crash your own view), content type is "application/problem+json" and problem code is "error".
@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