@@ -2351,8 +2351,8 @@ def test_assert_updated(self):
2351
2351
2352
2352
# when ids has multiple records, all records should be updated
2353
2353
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"
2356
2356
util .flush (p1 )
2357
2357
util .flush (p2 )
2358
2358
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
@@ -2388,12 +2388,12 @@ def test_assert_not_updated(self):
2388
2388
2389
2389
# when ids has a record, only that record should not be updated
2390
2390
with self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2391
- p1 .company_name = "Survey Corps"
2391
+ p1 .city = "Survey Corps"
2392
2392
util .flush (p1 )
2393
2393
2394
2394
# when ids has multiple records, none of them should be updated
2395
2395
with self .assertRaises (AssertionError ), self .assertNotUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2396
- p2 .company_name = "Survey Corps"
2396
+ p2 .city = "Survey Corps"
2397
2397
util .flush (p2 )
2398
2398
2399
2399
def test_assert_updated_combo (self ):
@@ -2403,7 +2403,7 @@ def test_assert_updated_combo(self):
2403
2403
util .flush (p2 )
2404
2404
2405
2405
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"
2407
2407
util .flush (p1 )
2408
2408
2409
2409
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" ), self .assertNotUpdated (
0 commit comments