24 строки
698 B
INI
24 строки
698 B
INI
[tox]
|
|
skipsdist = true
|
|
envlist = smoke-tests, dennis-lint
|
|
|
|
[testenv:smoke-tests]
|
|
passenv = PYTEST_ADDOPTS
|
|
deps =
|
|
pytest>=5.0.1
|
|
pytest-base-url>=1.4.1
|
|
requests>=2.22.0
|
|
pytest-rerunfailures>=7.0
|
|
commands = pytest --base-url http://olympia.test --verify-base-url --reruns 1 tests/smoke/test_homepage.py {posargs}
|
|
|
|
|
|
[testenv:dennis-lint]
|
|
deps = dennis==1.1.0
|
|
# Run via `bash -c` to make sure the file globbing is properly resolved in the shell
|
|
commands =
|
|
bash -c 'dennis-cmd lint locale/*/LC_MESSAGES/*.po --rules W202'
|
|
bash -c 'dennis-cmd lint --errorsonly locale/*/LC_MESSAGES/*.po'
|
|
bash -c 'dennis-cmd lint --errorsonly locale/templates/LC_MESSAGES/*.pot'
|
|
allowlist_externals =
|
|
bash
|