mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #26125 -- Fixed E731 flake warnings.
This commit is contained in:
parent
abc0777b63
commit
60586dd737
36 changed files with 176 additions and 75 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue