Made small readability improvements.

This commit is contained in:
Martin Thoma 2020-09-24 18:37:55 +02:00 committed by Mariusz Felisiak
parent 4eb756793b
commit 302caa40e4
13 changed files with 52 additions and 62 deletions

View file

@ -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):