diff options
| author | Roy Sommer <roy@sommer.co.il> | 2019-12-22 23:09:38 +0200 |
|---|---|---|
| committer | Roy Sommer <roy@sommer.co.il> | 2019-12-22 23:09:38 +0200 |
| commit | ea898f7bf45ca0f8667bd76d6718c6fff9961bd3 (patch) | |
| tree | a0b1ed5885ad6e97c411335fcc2c3e6e093df8f4 /tests/fixtures | |
| download | taskipy2-ea898f7bf45ca0f8667bd76d6718c6fff9961bd3.zip | |
initial commit
Diffstat (limited to 'tests/fixtures')
5 files changed, 36 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_malformed_pyproject/pyproject.toml b/tests/fixtures/project_with_malformed_pyproject/pyproject.toml new file mode 100644 index 0000000..28794b4 --- /dev/null +++ b/tests/fixtures/project_with_malformed_pyproject/pyproject.toml @@ -0,0 +1,8 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[[[[]]]] +asdfdasfdsaf +dsafv,dsa;lfj23[5432-tywersf +c======]asfdsafs = sadf2435 diff --git a/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml b/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml new file mode 100644 index 0000000..fb9a142 --- /dev/null +++ b/tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml @@ -0,0 +1,16 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[tool.taskify.tasks] +pre_hello = "echo 'pre_task'" +hello = "echo 'hello'" +post_hello = "echo 'post_task'" + +pre_hello_failed_pretask = "echo 'pre_task' && exit 1" +hello_failed_pretask = "echo 'hello'" +post_hello_failed_pretask = "echo 'post_task'" + +pre_hello_failed_posttask = "echo 'pre_task'" +hello_failed_posttask = "echo 'hello'" +post_hello_failed_posttask = "echo 'post_task' && exit 1" diff --git a/tests/fixtures/project_with_pyproject_and_tasks/pyproject.toml b/tests/fixtures/project_with_pyproject_and_tasks/pyproject.toml new file mode 100644 index 0000000..289fcf4 --- /dev/null +++ b/tests/fixtures/project_with_pyproject_and_tasks/pyproject.toml @@ -0,0 +1,9 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[tool.taskify.tasks] +create_hello_txt = "echo 'hello, world' > hello.txt" +exit_17 = "exit 17" +print_hello_stdout = "echo 'hello stdout'" +print_hello_stderr = ">&2 echo 'hello stderr'" diff --git a/tests/fixtures/project_with_pyproject_without_tasks_section/pyproject.toml b/tests/fixtures/project_with_pyproject_without_tasks_section/pyproject.toml new file mode 100644 index 0000000..214e16b --- /dev/null +++ b/tests/fixtures/project_with_pyproject_without_tasks_section/pyproject.toml @@ -0,0 +1,3 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" diff --git a/tests/fixtures/project_without_pyproject/.keep b/tests/fixtures/project_without_pyproject/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/fixtures/project_without_pyproject/.keep |