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