Skip to content

Commit edaca66

Browse files
committed
[I18N] *: weblate config replaces transifex
closes #971 Signed-off-by: Vallaeys Valentin (vava) <[email protected]>
1 parent 45d79c7 commit edaca66

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/test_generic/tests/test_mandatory_files.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,13 @@ def test_required_files(self):
3535
if not os.path.isfile(get_industry_path() + module + path):
3636
_logger.warning("Missing %s at %s", f, module + path)
3737

38-
tx_config = Path(get_industry_path() + '.tx/config').read_text(encoding="utf-8")
39-
if not re.search(module, tx_config):
40-
_logger.error("Missing module in .tx/config")
38+
weblate_config = Path(get_industry_path() + '.weblate.json').read_text(encoding="utf-8")
39+
if not re.search(module, weblate_config):
40+
_logger.error("Missing module in .weblate.json")
4141
continue
4242
if release.version_info[3] != 'final':
4343
# skip test if master
4444
continue
45-
odoo_version = release.serie
46-
if odoo_version.split('.')[1] != '0':
47-
odoo_version = odoo_version.replace('.', '-').split('~')[-1]
48-
else:
49-
odoo_version = odoo_version.split('.')[0]
50-
if not re.search(odoo_version + ':r:' + module, tx_config):
51-
_logger.warning("Wrong version in .tx/config")
5245

5346
db_name = get_db_name()
5447
if not db_name.endswith('imported_with_demo'):

0 commit comments

Comments
 (0)