run latest autoformatter

This commit is contained in:
Bastien Gerard 2021-05-04 10:49:42 +02:00
parent 0e6bcbc030
commit 2215e2746b
3 changed files with 6 additions and 6 deletions

View File

@ -177,7 +177,7 @@ class TestClassMethods(unittest.TestCase):
assert BlogPostWithCustomField.compare_indexes() == {"missing": [], "extra": []} assert BlogPostWithCustomField.compare_indexes() == {"missing": [], "extra": []}
def test_compare_indexes_for_text_indexes(self): def test_compare_indexes_for_text_indexes(self):
""" Ensure that compare_indexes behaves correctly for text indexes """ """Ensure that compare_indexes behaves correctly for text indexes"""
class Doc(Document): class Doc(Document):
a = StringField() a = StringField()

View File

@ -308,7 +308,7 @@ class TestFileField(MongoDBTestCase):
assert test_file.the_file not in [{"test": 1}] assert test_file.the_file not in [{"test": 1}]
def test_file_disk_space(self): def test_file_disk_space(self):
""" Test disk space usage when we delete/replace a file """ """Test disk space usage when we delete/replace a file"""
class TestFile(Document): class TestFile(Document):
the_file = FileField() the_file = FileField()

View File

@ -249,7 +249,7 @@ class TestSignal(unittest.TestCase):
assert self.pre_signals == post_signals assert self.pre_signals == post_signals
def test_model_signals(self): def test_model_signals(self):
""" Model saves should throw some signals. """ """Model saves should throw some signals."""
def create_author(): def create_author():
self.Author(name="Bill Shakespeare") self.Author(name="Bill Shakespeare")
@ -340,7 +340,7 @@ class TestSignal(unittest.TestCase):
] ]
def test_signal_kwargs(self): def test_signal_kwargs(self):
""" Make sure signal_kwargs is passed to signals calls. """ """Make sure signal_kwargs is passed to signals calls."""
def live_and_let_die(): def live_and_let_die():
a = self.Author(name="Bill Shakespeare") a = self.Author(name="Bill Shakespeare")
@ -385,7 +385,7 @@ class TestSignal(unittest.TestCase):
] ]
def test_queryset_delete_signals(self): def test_queryset_delete_signals(self):
""" Queryset delete should throw some signals. """ """Queryset delete should throw some signals."""
self.Another(name="Bill Shakespeare").save() self.Another(name="Bill Shakespeare").save()
assert self.get_signal_output(self.Another.objects.delete) == [ assert self.get_signal_output(self.Another.objects.delete) == [
@ -396,7 +396,7 @@ class TestSignal(unittest.TestCase):
] ]
def test_signals_with_explicit_doc_ids(self): def test_signals_with_explicit_doc_ids(self):
""" Model saves must have a created flag the first time.""" """Model saves must have a created flag the first time."""
ei = self.ExplicitId(id=123) ei = self.ExplicitId(id=123)
# post save must received the created flag, even if there's already # post save must received the created flag, even if there's already
# an object id present # an object id present