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

Create test for the API Root View #42

Open
Tracked by #18
terrameijar opened this issue Feb 16, 2024 · 2 comments
Open
Tracked by #18

Create test for the API Root View #42

terrameijar opened this issue Feb 16, 2024 · 2 comments
Assignees
Labels

Comments

@terrameijar
Copy link
Collaborator

terrameijar commented Feb 16, 2024

Create a unit test for the APIRootView in backend/api/views. The test should test that the view exists by checking that navigating to the view returns an HTTP status code of 200.

Going over the section on testing in the docs is a good idea:

https://docs.djangoproject.com/en/5.0/topics/testing/

@terrameijar terrameijar changed the title - Create test for the API Root View Create test for the API Root View Feb 16, 2024
@Awakhiwekyle
Copy link
Contributor

Thanks @terrameijar, I am happy to start working on this today. If anything, I will be asking for help and clarification as we go.

@terrameijar
Copy link
Collaborator Author

Thanks @terrameijar, I am happy to start working on this today. If anything, I will be asking for help and clarification as we go.

Happy to help. Note that we're using Python's unittest module here and not pytest so some things might be different from what you're used to.

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

No branches or pull requests

2 participants