From ea898f7bf45ca0f8667bd76d6718c6fff9961bd3 Mon Sep 17 00:00:00 2001 From: Roy Sommer Date: Sun, 22 Dec 2019 23:09:38 +0200 Subject: initial commit --- .../project_with_malformed_pyproject/pyproject.toml | 8 ++++++++ .../project_with_pre_post_task_hooks/pyproject.toml | 16 ++++++++++++++++ .../project_with_pyproject_and_tasks/pyproject.toml | 9 +++++++++ .../pyproject.toml | 3 +++ tests/fixtures/project_without_pyproject/.keep | 0 5 files changed, 36 insertions(+) create mode 100644 tests/fixtures/project_with_malformed_pyproject/pyproject.toml create mode 100644 tests/fixtures/project_with_pre_post_task_hooks/pyproject.toml create mode 100644 tests/fixtures/project_with_pyproject_and_tasks/pyproject.toml create mode 100644 tests/fixtures/project_with_pyproject_without_tasks_section/pyproject.toml create mode 100644 tests/fixtures/project_without_pyproject/.keep (limited to 'tests/fixtures') 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 -- cgit v1.2.3