mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Split up tests into logical units.
This commit is contained in:
parent
cd07472676
commit
e63bb0f4a9
@ -19,12 +19,17 @@ def teardown_module():
|
||||
(test_root / '_build').rmtree(True)
|
||||
|
||||
|
||||
@with_app(buildername='gettext', cleanenv=True)
|
||||
def test_build(app):
|
||||
app.builder.build_all()
|
||||
# documents end up in a message catalog
|
||||
assert (app.outdir / 'contents.pot').isfile()
|
||||
# ..and are grouped into sections
|
||||
assert (app.outdir / 'subdir.pot').isfile()
|
||||
|
||||
@with_app(buildername='gettext', cleanenv=True)
|
||||
def test_gettext(app):
|
||||
app.builder.build_all()
|
||||
assert (app.outdir / 'contents.pot').isfile()
|
||||
# group into sections
|
||||
assert (app.outdir / 'subdir.pot').isfile()
|
||||
|
||||
(app.outdir / 'en' / 'LC_MESSAGES').makedirs()
|
||||
cwd = os.getcwd()
|
||||
|
Loading…
Reference in New Issue
Block a user