From 50a4e308307178d053066733371f35de8d25d49f Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 25 Mar 2022 10:10:13 +0100 Subject: [mod] add test.pybabel to cover issues in translation tasks We need to cover issue related to pybabel/translation tasks. By example there was an issue [1] (fixed [2]) when upgrading jinja2 from 3.0.3 to 3.1.0 [3] that has not been covered by the CI tests. [1] https://github.com/searxng/searxng/runs/5688624325?check_suite_focus=true#step:6:348 [2] https://github.com/searxng/searxng/pull/1011 [3] https://github.com/searxng/searxng/pull/1008 Signed-off-by: Markus Heiser --- manage | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manage') diff --git a/manage b/manage index cfba8aea8..79ee6a7a9 100755 --- a/manage +++ b/manage @@ -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/ -- cgit v1.2.3