Mercurial > kallithea
view scripts/run-all-cleanup @ 7752:3929ff3f21c6
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.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Tue, 11 Jun 2019 20:53:33 +0200 |
parents | 40edadecda69 |
children | 51af7c12ffb1 |
line wrap: on
line source
#!/bin/sh # Convenience script for running various idempotent source code cleanup scripts set -e set -x scripts/docs-headings.py scripts/generate-ini.py scripts/whitespacecleanup.sh