Skip to content

Commit 28226f8

Browse files
committed
black it
1 parent 558e329 commit 28226f8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/queryset/test_queryset.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -872,17 +872,15 @@ def test_rename(self):
872872
self.Person.objects.create(name="Foo", age=11)
873873

874874
bob = self.Person.objects.as_pymongo().first()
875-
assert 'age' in bob
876-
assert bob['age'] == 11
875+
assert "age" in bob
876+
assert bob["age"] == 11
877877

878-
self.Person.objects(name="Foo").update(
879-
rename__age='person_age'
880-
)
878+
self.Person.objects(name="Foo").update(rename__age="person_age")
881879

882880
bob = self.Person.objects.as_pymongo().first()
883-
assert 'age' not in bob
884-
assert 'person_age' in bob
885-
assert bob['person_age'] == 11
881+
assert "age" not in bob
882+
assert "person_age" in bob
883+
assert bob["person_age"] == 11
886884

887885
def test_save_and_only_on_fields_with_default(self):
888886
class Embed(EmbeddedDocument):

0 commit comments

Comments
 (0)