Skip to content

Commit

Permalink
fixup! [IMP] snippets: move all work from parent to mp workers
Browse files Browse the repository at this point in the history
  • Loading branch information
cawo-odoo committed Sep 23, 2024
1 parent a697852 commit b6888a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@ def not_doing_anything_converter(el):

class TestHTMLFormat(UnitTestCase):
def testsnip(self):
# util.convert_html_columns() commits the cursor, use a new transaction to not mess up the test_cr
with self.registry.cursor() as cr:
env = api.Environment(cr, SUPERUSER_ID, {})
view_arch = """
Expand Down Expand Up @@ -1465,6 +1466,7 @@ def testsnip(self):
)
util.invalidate(view_id)
res = env["ir.ui.view"].search_read([("id", "=", view_id.id)], ["arch_db"])
# clean up committed data
view_id.unlink()
self.assertEqual(len(res), 1)
oneline = lambda s: re.sub(r"\s+", " ", s.strip())
Expand Down

0 comments on commit b6888a6

Please sign in to comment.