Add Invoke task for updating functional test output

This commit is contained in:
Justin Mayer 2019-11-12 07:40:05 -08:00
commit b7368f919f
2 changed files with 17 additions and 8 deletions

View file

@ -79,3 +79,17 @@ def setup(c):
tools(c)
c.run(f"{POETRY} install")
precommit(c)
@task
def update_functional_tests(c):
"""Update the generated functional test output"""
c.run(
f"bash -c 'LC_ALL=en_US.utf8 pelican -o {PKG_PATH}/tests/output/custom/ -s samples/pelican.conf.py samples/content/'"
)
c.run(
f"bash -c 'LC_ALL=fr_FR.utf8 pelican -o {PKG_PATH}/tests/output/custom_locale/ -s samples/pelican.conf_FR.py samples/content/'"
)
c.run(
f"bash -c 'LC_ALL=en_US.utf8 pelican -o {PKG_PATH}/tests/output/basic/ samples/content/'"
)