Merge pull request #2513 from bagerard/prepare_release

Prepare release
This commit is contained in:
Bastien Gérard 2021-05-04 12:15:34 +02:00 committed by GitHub
commit 04c26acdd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 9 deletions

View File

@ -8,7 +8,7 @@ repos:
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- repo: https://github.com/ambv/black - repo: https://github.com/ambv/black
rev: 20.8b1 rev: 21.4b2
hooks: hooks:
- id: black - id: black
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
@ -16,7 +16,7 @@ repos:
hooks: hooks:
- id: flake8 - id: flake8
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v2.13.0 rev: v2.14.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py36-plus] args: [--py36-plus]

View File

@ -7,6 +7,9 @@ Changelog
Development Development
=========== ===========
- (Fill this out as you fix issues and develop your features). - (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 - Bug fix: ignore LazyReferenceFields when clearing _changed_fields #2484
- Improve connection doc #2481 - Improve connection doc #2481

View File

@ -29,7 +29,7 @@ __all__ = (
) )
VERSION = (0, 23, 0) VERSION = (0, 23, 1)
def get_version(): def get_version():

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