@@ -2240,8 +2240,8 @@ def test_assert_updated(self):
2240
2240
2241
2241
# when ids has multiple records, all records should be updated
2242
2242
with self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2243
- p1 .company_name = "Survey Corps"
2244
- p2 .company_name = "Survey Corps"
2243
+ p1 .city = "Survey Corps"
2244
+ p2 .city = "Survey Corps"
2245
2245
util .flush (p1 )
2246
2246
util .flush (p2 )
2247
2247
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
@@ -2277,12 +2277,12 @@ def test_assert_not_updated(self):
2277
2277
2278
2278
# when ids has a record, only that record should not be updated
2279
2279
with self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2280
- p1 .company_name = "Survey Corps"
2280
+ p1 .city = "Survey Corps"
2281
2281
util .flush (p1 )
2282
2282
2283
2283
# when ids has multiple records, none of them should be updated
2284
2284
with self .assertRaises (AssertionError ), self .assertNotUpdated ("res_partner" , ids = [p1 .id , p2 .id ]):
2285
- p2 .company_name = "Survey Corps"
2285
+ p2 .city = "Survey Corps"
2286
2286
util .flush (p2 )
2287
2287
2288
2288
def test_assert_updated_combo (self ):
@@ -2292,7 +2292,7 @@ def test_assert_updated_combo(self):
2292
2292
util .flush (p2 )
2293
2293
2294
2294
with self .assertUpdated ("res_partner" , ids = [p1 .id ]), self .assertNotUpdated ("res_partner" , ids = [p2 .id ]):
2295
- p1 .company_name = "Marley Warriors"
2295
+ p1 .city = "Marley Warriors"
2296
2296
util .flush (p1 )
2297
2297
2298
2298
with self .assertRaises (AssertionError ), self .assertUpdated ("res_partner" ), self .assertNotUpdated (
0 commit comments