[Python-modules-commits] [django-session-security] 06/16: Fix PEP8 E731
Jean-Michel Vourgère
nirgal at moszumanska.debian.org
Tue Sep 13 17:04:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
nirgal pushed a commit to branch debian/sid
in repository django-session-security.
commit be631b434d0ffad5f463d97e3c19d3731428a47b
Author: jpic <jamespic at gmail.com>
Date: Wed Aug 17 03:03:30 2016 +0200
Fix PEP8 E731
---
session_security/tests/test_views.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/session_security/tests/test_views.py b/session_security/tests/test_views.py
index e3aed07..4fd7d92 100644
--- a/session_security/tests/test_views.py
+++ b/session_security/tests/test_views.py
@@ -28,12 +28,13 @@ class ViewsTestCase(test.TestCase):
response = self.client.get('/session_security/ping/?idleFor=1')
self.assertEqual(response.content, six.b('"logout"'))
- ping_provider = lambda x=None: (
- (1, 4, '1'),
- (3, 2, '2'),
- (5, 5, '5'),
- (12, 14, '"logout"', False),
- )
+ def ping_provider(x=None):
+ return (
+ (1, 4, '1'),
+ (3, 2, '2'),
+ (5, 5, '5'),
+ (12, 14, '"logout"', False),
+ )
@data_provider(ping_provider)
def test_ping(self, server, client, expected, authenticated=True):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-session-security.git
More information about the Python-modules-commits
mailing list