Skip to content

Commit

Permalink
[FIX] remove cr
Browse files Browse the repository at this point in the history
  • Loading branch information
psugne committed Oct 23, 2024
1 parent c5d2efd commit e1171da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions product_multi_image/tests/test_product_multi_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ def test_11_post_init_hook_template(self):

def test_12_uninstall_hook_product(self):
"""It should remove ``image_ids`` associated with products."""
hooks.uninstall_hook(self.env.cr)
hooks.uninstall_hook(self.env)
images = self.env["base_multi_image.image"].search(
[("owner_model", "=", "product.product")],
)
self.assertFalse(len(images))

def test_13_uninstall_hook_template(self):
"""It should remove ``image_ids`` associated with templates."""
hooks.uninstall_hook(self.env.cr)
hooks.uninstall_hook(self.env)
images = self.env["base_multi_image.image"].search(
[("owner_model", "=", "product.template")],
)
Expand Down

0 comments on commit e1171da

Please sign in to comment.