@@ -2363,8 +2363,8 @@ def test_assert_updated(self):
2363
2363
2364
2364
# when ids has multiple records, all records should be updated
2365
2365
with self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2366
- p1 .company_name = "Survey Corps"
2367
- p2 .company_name = "Survey Corps"
2366
+ p1 .city = "Survey Corps"
2367
+ p2 .city = "Survey Corps"
2368
2368
util .flush (p1 )
2369
2369
util .flush (p2 )
2370
2370
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
@@ -2400,12 +2400,12 @@ def test_assert_not_updated(self):
2400
2400
2401
2401
# when ids has a record, only that record should not be updated
2402
2402
with self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2403
- p1 .company_name = "Survey Corps"
2403
+ p1 .city = "Survey Corps"
2404
2404
util .flush (p1 )
2405
2405
2406
2406
# when ids has multiple records, none of them should be updated
2407
2407
with self .assertRaises (AssertionError ), self .assertNotUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2408
- p2 .company_name = "Survey Corps"
2408
+ p2 .city = "Survey Corps"
2409
2409
util .flush (p2 )
2410
2410
2411
2411
def test_assert_updated_combo (self ):
@@ -2415,7 +2415,7 @@ def test_assert_updated_combo(self):
2415
2415
util .flush (p2 )
2416
2416
2417
2417
with self .assertUpdated ("res_partner" , ids = [p1 .id ]), self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2418
- p1 .company_name = "Marley Warriors"
2418
+ p1 .city = "Marley Warriors"
2419
2419
util .flush (p1 )
2420
2420
2421
2421
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" ), self .assertNotUpdated (
0 commit comments