mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Made small readability improvements.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4eb756793b
commit
302caa40e4
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
@@ -1714,7 +1714,7 @@ class CacheUtils(SimpleTestCase):
|
||||
def _get_request_cache(self, method='GET', query_string=None, update_cache=None):
|
||||
request = self._get_request(self.host, self.path,
|
||||
method, query_string=query_string)
|
||||
request._cache_update_cache = True if not update_cache else update_cache
|
||||
request._cache_update_cache = update_cache if update_cache else True
|
||||
return request
|
||||
|
||||
def test_patch_vary_headers(self):
|
||||
|
||||
Reference in New Issue
Block a user