Split up tests into logical units.

This commit is contained in:
Robert Lehmann 2010-06-17 11:46:49 +02:00
parent cd07472676
commit e63bb0f4a9

View File

@ -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()