Skip to content

Commit aa92a8f

Browse files
committed
[IMP] tests: Fixed unit tests after res.bank removal
This commit fixes the upgrade-util tests that failed due to the removal of res.bank model. The model res.bank was replaced with res.partner. task-5145618
1 parent c2590fb commit aa92a8f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/base/tests/test_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,8 +2599,8 @@ def test_assert_updated(self):
25992599
with self.assertUpdated("res_partner", ids=[]):
26002600
p1.city = "Underground"
26012601
util.flush(p1)
2602-
with self.assertRaises(AssertionError), self.assertUpdated("res_bank", ids=[]):
2603-
self.env["res.bank"].create({"name": "Annie Leonhart"})
2602+
with self.assertRaises(AssertionError), self.assertUpdated("res_partner", ids=[]):
2603+
self.env["res.partner"].create({"name": "Annie Leonhart"})
26042604

26052605
# when ids has multiple records, all records should be updated
26062606
with self.assertUpdated("res_partner", ids=[p1.id, p2.id]):
@@ -2633,8 +2633,8 @@ def test_assert_not_updated(self):
26332633
self.env["res.partner"].create({"name": "Bertolt Hoover"})
26342634

26352635
# when ids is [], assert no record is updated
2636-
with self.assertNotUpdated("res_bank", ids=[]):
2637-
self.env["res.bank"].create({"name": "Marco Bodt"})
2636+
with self.assertNotUpdated("res_partner", ids=[]):
2637+
self.env["res.partner"].create({"name": "Marco Bodt"})
26382638
with self.assertRaises(AssertionError), self.assertNotUpdated("res_partner", ids=[]):
26392639
p2.city = "Shiganshina"
26402640
util.flush(p2)

0 commit comments

Comments
 (0)