mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #21268 -- Fixed E303 pep8 warnings
This commit is contained in:
parent
65d1d65d52
commit
bab9123daa
53 changed files with 2 additions and 87 deletions
|
@ -66,7 +66,6 @@ class QueryTestCase(TestCase):
|
|||
title="Dive into Python"
|
||||
)
|
||||
|
||||
|
||||
def test_other_creation(self):
|
||||
"Objects created on another database don't leak onto the default database"
|
||||
# Create a book on the second database
|
||||
|
@ -201,7 +200,6 @@ class QueryTestCase(TestCase):
|
|||
self.assertEqual(list(Book.objects.using('other').filter(authors__name='John Smith').values_list('title', flat=True)),
|
||||
[])
|
||||
|
||||
|
||||
dive.authors.add(john)
|
||||
self.assertEqual(list(Book.objects.using('other').filter(authors__name='Mark Pilgrim').values_list('title', flat=True)),
|
||||
['Dive into Python'])
|
||||
|
@ -1027,7 +1025,6 @@ class RouterTestCase(TestCase):
|
|||
self.assertFalse(router.allow_migrate('default', User))
|
||||
self.assertTrue(router.allow_migrate('default', Book))
|
||||
|
||||
|
||||
def test_database_routing(self):
|
||||
marty = Person.objects.using('default').create(name="Marty Alchin")
|
||||
pro = Book.objects.using('default').create(title="Pro Django",
|
||||
|
@ -1907,8 +1904,6 @@ class MigrateTestCase(TestCase):
|
|||
self.assertEqual(cts.count(), 0)
|
||||
|
||||
|
||||
|
||||
|
||||
class RouterUsed(Exception):
|
||||
WRITE = 'write'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue