diff options
Diffstat (limited to 'tests/fixtures/project_with_cwd_under_settings')
4 files changed, 18 insertions, 0 deletions
diff --git a/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/alternative_calling_folder/.gitkeep b/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/alternative_calling_folder/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/alternative_calling_folder/.gitkeep diff --git a/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/pyproject.toml b/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/pyproject.toml new file mode 100644 index 0000000..581d7db --- /dev/null +++ b/tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/pyproject.toml @@ -0,0 +1,9 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[tool.taskipy.settings] +cwd = "../child_without_pyproject" + +[tool.taskipy.tasks] +pwd = { cmd = "python -c \"import os; print(os.getcwd())\"" } diff --git a/tests/fixtures/project_with_cwd_under_settings/child_without_pyproject/.gitkeep b/tests/fixtures/project_with_cwd_under_settings/child_without_pyproject/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/fixtures/project_with_cwd_under_settings/child_without_pyproject/.gitkeep diff --git a/tests/fixtures/project_with_cwd_under_settings/pyproject.toml b/tests/fixtures/project_with_cwd_under_settings/pyproject.toml new file mode 100644 index 0000000..46b43c8 --- /dev/null +++ b/tests/fixtures/project_with_cwd_under_settings/pyproject.toml @@ -0,0 +1,9 @@ +[tool.poetry] +name = "taskipy" +description = "tasks runner for python projects" + +[tool.taskipy.settings] +cwd = "." + +[tool.taskipy.tasks] +pwd = { cmd = "python -c \"import os; print(os.getcwd())\"" } |