File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments