mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21298 -- Fixed E301 pep8 warnings
This commit is contained in:
@@ -12,6 +12,7 @@ class CallableVariablesTests(TestCase):
|
||||
def __init__(self, value):
|
||||
self.num_calls = 0
|
||||
self.value = value
|
||||
|
||||
def __call__(self):
|
||||
self.num_calls += 1
|
||||
return {"the_value": self.value}
|
||||
@@ -38,9 +39,11 @@ class CallableVariablesTests(TestCase):
|
||||
|
||||
class Doodad(object):
|
||||
alters_data = True
|
||||
|
||||
def __init__(self, value):
|
||||
self.num_calls = 0
|
||||
self.value = value
|
||||
|
||||
def __call__(self):
|
||||
self.num_calls += 1
|
||||
return {"the_value": self.value}
|
||||
@@ -63,9 +66,11 @@ class CallableVariablesTests(TestCase):
|
||||
|
||||
class Doodad(object):
|
||||
do_not_call_in_templates = True
|
||||
|
||||
def __init__(self, value):
|
||||
self.num_calls = 0
|
||||
self.value = value
|
||||
|
||||
def __call__(self):
|
||||
self.num_calls += 1
|
||||
return {"the_value": self.value}
|
||||
@@ -94,9 +99,11 @@ class CallableVariablesTests(TestCase):
|
||||
class Doodad(object):
|
||||
do_not_call_in_templates = True
|
||||
alters_data = True
|
||||
|
||||
def __init__(self, value):
|
||||
self.num_calls = 0
|
||||
self.value = value
|
||||
|
||||
def __call__(self):
|
||||
self.num_calls += 1
|
||||
return {"the_value": self.value}
|
||||
|
||||
Reference in New Issue
Block a user