aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/alternative_calling_folder/.gitkeep0
-rw-r--r--tests/fixtures/project_with_cwd_under_settings/child_with_pyproject/pyproject.toml9
-rw-r--r--tests/fixtures/project_with_cwd_under_settings/child_without_pyproject/.gitkeep0
-rw-r--r--tests/fixtures/project_with_cwd_under_settings/pyproject.toml9
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task/alternative_calling_folder/.gitkeep0
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task/pyproject.toml7
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task/subfolder/.gitkeep0
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task_and_settings/global_cwd/.gitkeep0
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task_and_settings/pyproject.toml11
-rw-r--r--tests/fixtures/project_with_cwd_under_specific_task_and_settings/subfolder/.gitkeep0
10 files changed, 36 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())\"" }
diff --git a/tests/fixtures/project_with_cwd_under_specific_task/alternative_calling_folder/.gitkeep b/tests/fixtures/project_with_cwd_under_specific_task/alternative_calling_folder/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task/alternative_calling_folder/.gitkeep
diff --git a/tests/fixtures/project_with_cwd_under_specific_task/pyproject.toml b/tests/fixtures/project_with_cwd_under_specific_task/pyproject.toml
new file mode 100644
index 0000000..78b7b7a
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task/pyproject.toml
@@ -0,0 +1,7 @@
+[tool.poetry]
+name = "taskipy"
+description = "tasks runner for python projects"
+
+[tool.taskipy.tasks]
+pwd = { cmd = "python -c \"import os; print(os.getcwd())\"" }
+pwdsub = { cmd = "python -c \"import os; print(os.getcwd())\"", cwd = "./subfolder" }
diff --git a/tests/fixtures/project_with_cwd_under_specific_task/subfolder/.gitkeep b/tests/fixtures/project_with_cwd_under_specific_task/subfolder/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task/subfolder/.gitkeep
diff --git a/tests/fixtures/project_with_cwd_under_specific_task_and_settings/global_cwd/.gitkeep b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/global_cwd/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/global_cwd/.gitkeep
diff --git a/tests/fixtures/project_with_cwd_under_specific_task_and_settings/pyproject.toml b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/pyproject.toml
new file mode 100644
index 0000000..443a678
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/pyproject.toml
@@ -0,0 +1,11 @@
+[tool.poetry]
+name = "taskipy"
+description = "tasks runner for python projects"
+
+[tool.taskipy.settings]
+cwd = "./global_cwd"
+
+[tool.taskipy.tasks]
+pwdglobalcwd = { cmd = "python -c \"import os; print(os.getcwd())\"" }
+pwdpyproject = { cmd = "python -c \"import os; print(os.getcwd())\"", cwd = "." }
+pwdsub = { cmd = "python -c \"import os; print(os.getcwd())\"", cwd = "./subfolder" }
diff --git a/tests/fixtures/project_with_cwd_under_specific_task_and_settings/subfolder/.gitkeep b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/subfolder/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/fixtures/project_with_cwd_under_specific_task_and_settings/subfolder/.gitkeep