-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed tests to check
response.context_data
rather than `response.…
…context` The `context` attribute of a response from a test client has changed in Django 4.0. This was causing some checks of ``"form" in res.context` to return `True` rather than `False`. Checking against `context_data` is better practice as this is a dictionary. It's not clear from the Django 4.0 release notes what caused this change.
- Loading branch information
1 parent
96b8c68
commit 1088133
Showing
1 changed file
with
79 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters