mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Split up tests into logical units.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user