Closed LilyFoote closed 9 years ago
When using a class-based view, a urls.py with a missing .as_view method doesn't fail an assert_url_matches_view test.
.as_view
assert_url_matches_view
Incorrect:
url(regex, ViewClass, url_name)
Correct:
url(regex, ViewClass.as_view(), url_name)
We should make sure assert_url_matches_view fails with the first example and passes with the second.
@incuna/backend Review?
When using a class-based view, a urls.py with a missing
.as_view
method doesn't fail anassert_url_matches_view
test.Incorrect:
Correct:
We should make sure
assert_url_matches_view
fails with the first example and passes with the second.