Testing urls.py
Hi The lesson mentions that using reverse to generate URLs for tests to fetch has the side effect of testing that urls.py is correctly configured. For this to be the case should we test that the correct view is being invoked?
Sorry You must be a logged in, registered user to answer a question.
Answers
The test doesn't stop at fetching the reverse'd url, so you are testing that it's running the correct view (because it does what you expect in the test). Going further, making sure the current module has XYZ name is really just testing that Django is working properly, which is the point of Django's tests, not yours.