Files @ 3929ff3f21c6
Branch filter:

Location: kallithea/dev_requirements.txt

Thomas De Schampheleire
tests: introduce doctest_mock_ugettext to allow doctests of localized code

Future doctests will require some extra mocking, as the code-under-test uses
translation (ugettext aka '_') and its provider TurboGears2 needs a context.

Avoid this complexity by mocking ugettext as the identity function. This is
done by providing a pytest fixture 'doctest_mock_ugettext' that will mock
uggettext in the module that uses the fixture.
1
2
3
4
5
6
7
8
pytest >= 3.3.0, < 4.7
pytest-runner < 5.2
pytest-sugar >= 0.7.0, < 0.10
pytest-benchmark < 3.3
pytest-localserver < 0.6
mock < 3.1
Sphinx < 1.9
WebTest < 2.1