mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add Invoke task for updating functional test output
This commit is contained in:
parent
703c281089
commit
b7368f919f
2 changed files with 17 additions and 8 deletions
14
tasks.py
14
tasks.py
|
|
@ -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/'"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue