@@ -2351,8 +2351,8 @@ def test_assert_updated(self):
23512351
23522352 # when ids has multiple records, all records should be updated
23532353 with self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2354- p1 .company_name = "Survey Corps"
2355- p2 .company_name = "Survey Corps"
2354+ p1 .city = "Survey Corps"
2355+ p2 .city = "Survey Corps"
23562356 util .flush (p1 )
23572357 util .flush (p2 )
23582358 with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
@@ -2388,12 +2388,12 @@ def test_assert_not_updated(self):
23882388
23892389 # when ids has a record, only that record should not be updated
23902390 with self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2391- p1 .company_name = "Survey Corps"
2391+ p1 .city = "Survey Corps"
23922392 util .flush (p1 )
23932393
23942394 # when ids has multiple records, none of them should be updated
23952395 with self .assertRaises (AssertionError ), self .assertNotUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2396- p2 .company_name = "Survey Corps"
2396+ p2 .city = "Survey Corps"
23972397 util .flush (p2 )
23982398
23992399 def test_assert_updated_combo (self ):
@@ -2403,7 +2403,7 @@ def test_assert_updated_combo(self):
24032403 util .flush (p2 )
24042404
24052405 with self .assertUpdated ("res_partner" , ids = [p1 .id ]), self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2406- p1 .company_name = "Marley Warriors"
2406+ p1 .city = "Marley Warriors"
24072407 util .flush (p1 )
24082408
24092409 with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" ), self .assertNotUpdated (
0 commit comments