summaryrefslogtreecommitdiff
path: root/tests/admin_utils
diff options
context:
space:
mode:
authoruserimack <mahendra.k12@gmail.com>2016-01-23 22:17:07 +0530
committerTim Graham <timograham@gmail.com>2016-01-25 14:23:43 -0500
commit60586dd7379b295b72d8af4e03423c286913b5e8 (patch)
tree6f834957ea76305fbcda40e23e836077890d36b8 /tests/admin_utils
parentabc0777b63057e2ff97eee2ff184356051e14c47 (diff)
Fixed #26125 -- Fixed E731 flake warnings.
Diffstat (limited to 'tests/admin_utils')
-rw-r--r--tests/admin_utils/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py
index 694c529b76..01ec6702cc 100644
--- a/tests/admin_utils/tests.py
+++ b/tests/admin_utils/tests.py
@@ -111,7 +111,8 @@ class UtilsTests(SimpleTestCase):
def get_admin_value(self, obj):
return ADMIN_METHOD
- simple_function = lambda obj: SIMPLE_FUNCTION
+ def simple_function(obj):
+ return SIMPLE_FUNCTION
site_obj = Site(domain=SITE_NAME)
article = Article(