diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-04-23 10:58:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-23 10:58:36 +0200 |
| commit | ca1a5f9d270696a917aef9c411c9671255732281 (patch) | |
| tree | 1014a63c2a789a51914dbfd8ca5e7c3f9c6aedac | |
| parent | a8651305399a256871da875b66b6a661d80ef07a (diff) | |
| parent | 50a4e308307178d053066733371f35de8d25d49f (diff) | |
Merge pull request #1013 from return42/test-pybabel
[mod] add test.pybabel to cover issues in translation tasks
| -rw-r--r-- | Makefile | 4 | ||||
| -rwxr-xr-x | manage | 7 |
2 files changed, 9 insertions, 2 deletions
@@ -50,7 +50,7 @@ search.checker.%: install $(Q)./manage pyenv.cmd searx-checker -v "$(subst _, ,$(patsubst search.checker.%,%,$@))" PHONY += test ci.test test.shell -ci.test: test.yamllint test.black test.pyright test.pylint test.unit test.robot test.rst +ci.test: test.yamllint test.black test.pyright test.pylint test.unit test.robot test.rst test.pybabel test: test.yamllint test.black test.pyright test.pylint test.unit test.robot test.rst test.shell test.shell: $(Q)shellcheck -x -s dash \ @@ -86,7 +86,7 @@ MANAGE += py.build py.clean MANAGE += pyenv pyenv.install pyenv.uninstall MANAGE += pypi.upload pypi.upload.test MANAGE += format.python -MANAGE += test.yamllint test.pylint test.pyright test.black test.unit test.coverage test.robot test.rst test.clean +MANAGE += test.yamllint test.pylint test.pyright test.black test.pybabel test.unit test.coverage test.robot test.rst test.clean MANAGE += themes.all themes.oscar themes.simple themes.simple.test pygments.less MANAGE += static.build.commit static.build.drop static.build.restore MANAGE += nvm.install nvm.clean nvm.status nvm.nodejs @@ -745,6 +745,13 @@ test.rst() { done } +test.pybabel() { + TEST_BABEL_FOLDER="build/test/pybabel" + build_msg TEST "[extract messages] pybabel" + mkdir -p "${TEST_BABEL_FOLDER}" + pyenv.cmd pybabel extract -F babel.cfg -o "${TEST_BABEL_FOLDER}/messages.pot" searx +} + test.clean() { build_msg CLEAN "test stuff" rm -rf geckodriver.log .coverage coverage/ |