Skip to content

Commit 7475d53

Browse files
lasleynicomacr
authored andcommitted
[9.0][FIX] database_cleanup: Isolate build (OCA#719)
* [FIX] database_cleanup: Isolate build * Isolate `database_cleanup` into its own build in Travis file to fix OCA#689 * [FIX] database_cleanup: Remove KeyError assertion * Remove KeyError assertion in tests due to PR in comment being merged
1 parent 937f1a7 commit 7475d53

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

database_cleanup/tests/test_database_cleanup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,11 @@ def test_database_cleanup(self):
5959
self.registry._pure_function_fields.pop(
6060
'x_database.cleanup.test.model')
6161
purge_models = self.env['cleanup.purge.wizard.model'].create({})
62-
with self.assertRaisesRegexp(KeyError,
63-
'x_database.cleanup.test.model'):
64-
# TODO: Remove with-assert of KeyError after fix:
65-
# https://github.com/odoo/odoo/pull/13978/files#r88654967
66-
purge_models.purge_all()
67-
# must be removed by the wizard
68-
self.assertFalse(self.env['ir.model'].search([
69-
('model', '=', 'x_database.cleanup.test.model'),
70-
]))
62+
purge_models.purge_all()
63+
# must be removed by the wizard
64+
self.assertFalse(self.env['ir.model'].search([
65+
('model', '=', 'x_database.cleanup.test.model'),
66+
]))
7167

7268
# create a nonexistent module
7369
self.module = self.env['ir.module.module'].create({

0 commit comments

Comments
 (0)