commit
04c26acdd6
@ -8,7 +8,7 @@ repos:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- repo: https://github.com/ambv/black
|
||||
rev: 20.8b1
|
||||
rev: 21.4b2
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
@ -16,7 +16,7 @@ repos:
|
||||
hooks:
|
||||
- id: flake8
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.13.0
|
||||
rev: v2.14.0
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
args: [--py36-plus]
|
||||
|
@ -7,6 +7,9 @@ Changelog
|
||||
Development
|
||||
===========
|
||||
- (Fill this out as you fix issues and develop your features).
|
||||
|
||||
Changes in 0.23.1
|
||||
===========
|
||||
- Bug fix: ignore LazyReferenceFields when clearing _changed_fields #2484
|
||||
- Improve connection doc #2481
|
||||
|
||||
|
@ -29,7 +29,7 @@ __all__ = (
|
||||
)
|
||||
|
||||
|
||||
VERSION = (0, 23, 0)
|
||||
VERSION = (0, 23, 1)
|
||||
|
||||
|
||||
def get_version():
|
||||
|
@ -177,7 +177,7 @@ class TestClassMethods(unittest.TestCase):
|
||||
assert BlogPostWithCustomField.compare_indexes() == {"missing": [], "extra": []}
|
||||
|
||||
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):
|
||||
a = StringField()
|
||||
|
@ -308,7 +308,7 @@ class TestFileField(MongoDBTestCase):
|
||||
assert test_file.the_file not in [{"test": 1}]
|
||||
|
||||
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):
|
||||
the_file = FileField()
|
||||
|
@ -249,7 +249,7 @@ class TestSignal(unittest.TestCase):
|
||||
assert self.pre_signals == post_signals
|
||||
|
||||
def test_model_signals(self):
|
||||
""" Model saves should throw some signals. """
|
||||
"""Model saves should throw some signals."""
|
||||
|
||||
def create_author():
|
||||
self.Author(name="Bill Shakespeare")
|
||||
@ -340,7 +340,7 @@ class TestSignal(unittest.TestCase):
|
||||
]
|
||||
|
||||
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():
|
||||
a = self.Author(name="Bill Shakespeare")
|
||||
@ -385,7 +385,7 @@ class TestSignal(unittest.TestCase):
|
||||
]
|
||||
|
||||
def test_queryset_delete_signals(self):
|
||||
""" Queryset delete should throw some signals. """
|
||||
"""Queryset delete should throw some signals."""
|
||||
|
||||
self.Another(name="Bill Shakespeare").save()
|
||||
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):
|
||||
""" 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)
|
||||
# post save must received the created flag, even if there's already
|
||||
# an object id present
|
||||
|
Loading…
x
Reference in New Issue
Block a user