summaryrefslogtreecommitdiff
path: root/tests/test_run.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_run.py')
-rw-r--r--tests/test_run.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_run.py b/tests/test_run.py
index 968e1cbe..80bdf659 100644
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -25,3 +25,9 @@ def test_no_tox_ini(tox_project: ToxProjectCreator) -> None:
outcome = project.run("l")
# assume an empty tox.ini at the cwd level
assert outcome.state.options.work_dir is None
+
+
+def test_custom_work_dir(tox_project: ToxProjectCreator) -> None:
+ project = tox_project({})
+ outcome = project.run("c", "--workdir", str(project.path.parent))
+ assert outcome.state.options.work_dir == project.path.parent