diff options
author | Tim Graham <timograham@gmail.com> | 2016-04-07 22:04:45 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-04-08 10:12:33 -0400 |
commit | 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch) | |
tree | 50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/proxy_models | |
parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
download | django-92053acbb9160862c3e743a99ed8ccff8d4f8fd6.tar.gz |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/proxy_models')
-rw-r--r-- | tests/proxy_models/tests.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/proxy_models/tests.py b/tests/proxy_models/tests.py index 20899c68d5..ecbb70c7c4 100644 --- a/tests/proxy_models/tests.py +++ b/tests/proxy_models/tests.py @@ -295,8 +295,7 @@ class ProxyModelTests(TestCase): resp = [s.name for s in StateProxy.objects.select_related()] self.assertEqual(resp, ['New South Wales']) - self.assertEqual(StateProxy.objects.get(name='New South Wales').name, - 'New South Wales') + self.assertEqual(StateProxy.objects.get(name='New South Wales').name, 'New South Wales') resp = StateProxy.objects.select_related().get(name='New South Wales') self.assertEqual(resp.name, 'New South Wales') @@ -317,16 +316,15 @@ class ProxyModelTests(TestCase): ) def test_proxy_bug(self): - contributor = ProxyTrackerUser.objects.create(name='Contributor', - status='contrib') + contributor = ProxyTrackerUser.objects.create(name='Contributor', status='contrib') someone = BaseUser.objects.create(name='Someone') - Bug.objects.create(summary='fix this', version='1.1beta', - assignee=contributor, reporter=someone) - pcontributor = ProxyTrackerUser.objects.create(name='OtherContributor', - status='proxy') - Improvement.objects.create(summary='improve that', version='1.1beta', + Bug.objects.create(summary='fix this', version='1.1beta', assignee=contributor, reporter=someone) + pcontributor = ProxyTrackerUser.objects.create(name='OtherContributor', status='proxy') + Improvement.objects.create( + summary='improve that', version='1.1beta', assignee=contributor, reporter=pcontributor, - associated_bug=ProxyProxyBug.objects.all()[0]) + associated_bug=ProxyProxyBug.objects.all()[0], + ) # Related field filter on proxy resp = ProxyBug.objects.get(version__icontains='beta') |