From 8b620a531925997b7ed5b7ebf9ca6efffce933e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 12 Feb 2017 14:18:51 +0100 Subject: [PATCH] PEP8 in gestion/tests.py --- gestion/tests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gestion/tests.py b/gestion/tests.py index 2e244271..96c80bf9 100644 --- a/gestion/tests.py +++ b/gestion/tests.py @@ -18,9 +18,9 @@ def create_profile(username): In order to create a profile, I need to create a User first. This is annoying in most situations, as I just want a profile. """ - u = User.objects.create(username=username, - first_name=username.title(), - last_name=username.title()) + User.objects.create(username=username, + first_name=username.title(), + last_name=username.title()) p, = Profile.objects.filter(user__username=username) return p @@ -55,9 +55,9 @@ class SimpleTest(TestCase): # each profile is linked to at most one account of the same type. p1 = create_profile('bar') p2 = create_profile('baz') - pkfet1 = Account.objects.create(profile=p1, trigramme='BAR') - pcof2 = CofProfile.objects.create(profile=p2) - pkfet2 = Account.objects.create(profile=p2, trigramme='BAZ') + Account.objects.create(profile=p1, trigramme='BAR') + CofProfile.objects.create(profile=p2) + Account.objects.create(profile=p2, trigramme='BAZ') self.assertRaises(IntegrityError, CofProfile.objects.create, profile=p2) @@ -65,7 +65,7 @@ class SimpleTest(TestCase): class TestProfile(TestCase): @patch('kfet.signals.messages') def test_profile(self, mock_messages): - root = User.objects.create_superuser('root', 'foo@bar.com', 'root') + User.objects.create_superuser('root', 'foo@bar.com', 'root') c = Client() c.login(username='root', password='root') response = c.get('/')