Skip to content

Commit

Permalink
[UPD] enable test that got disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspaulb committed Feb 14, 2024
1 parent 44cd5a4 commit 5f09d6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions module_auto_update/tests/test_addon_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

import os
import unittest

from odoo.tests import TransactionCase

from .. import addon_hash
from ..models.module import DEFAULT_EXCLUDE_PATTERNS


class TestAddonHash(unittest.TestCase):
class TestAddonHash(TransactionCase):
def setUp(self):
super(TestAddonHash, self).setUp()
self.sample_dir = os.path.join(
Expand All @@ -30,7 +31,6 @@ def test_basic(self):
"README.rst",
"data/f1.xml",
"data/f2.xml",
"i18n/en.po",
"i18n/en_US.po",
"i18n/fr.po",
"i18n/fr_BE.po",
Expand All @@ -39,7 +39,6 @@ def test_basic(self):
"i18n_extra/fr.po",
"i18n_extra/nl_NL.po",
"models/stuff.py",
"models/stuff.pyc",
"models/stuff.pyo",
"static/src/some.js",
],
Expand Down Expand Up @@ -73,4 +72,4 @@ def test2(self):
exclude_patterns=["*.pyc", "*.pyo", "*.pot", "static/*"],
keep_langs=["fr_FR", "nl"],
)
self.assertEqual(checksum, "fecb89486c8a29d1f760cbd01c1950f6e8421b14")
self.assertEqual(checksum, "5a14909e62f05c340f717bd87f64479a862b1941")

0 comments on commit 5f09d6e

Please sign in to comment.