Fixed #26125 -- Fixed E731 flake warnings.

This commit is contained in:
userimack 2016-01-23 22:17:07 +05:30 committed by Tim Graham
parent abc0777b63
commit 60586dd737
36 changed files with 176 additions and 75 deletions

View file

@ -690,7 +690,8 @@ class CustomTestClientTest(SimpleTestCase):
self.assertEqual(hasattr(self.client, "i_am_customized"), True)
_generic_view = lambda request: HttpResponse(status=200)
def _generic_view(request):
return HttpResponse(status=200)
@override_settings(ROOT_URLCONF='test_client.urls')