summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-03-25 10:10:13 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-04-23 10:20:22 +0200
commit50a4e308307178d053066733371f35de8d25d49f (patch)
tree1014a63c2a789a51914dbfd8ca5e7c3f9c6aedac /manage
parenta8651305399a256871da875b66b6a661d80ef07a (diff)
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage7
1 files changed, 7 insertions, 0 deletions
diff --git a/manage b/manage
index cfba8aea..79ee6a7a 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/