Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override toxworkdir with --workdir. #2776

Merged
merged 12 commits into from
Dec 26, 2022
Prev Previous commit
Next Next commit
Override toxworkdir with --workdir.
  • Loading branch information
q0w committed Dec 26, 2022
commit 8877dcdc85b17f71c7d78cbe3ef908f6dcf63dc1
2 changes: 1 addition & 1 deletion tests/config/test_sets.py
Original file line number Diff line number Diff line change
@@ -177,5 +177,5 @@ def test_set_env_raises_on_non_str(mocker: MockerFixture) -> None:
def test_config_work_dir(tox_project: ToxProjectCreator, work_dir: Path | None) -> None:
project = tox_project({"tox.ini": "[tox]\ntoxworkdir=b"})
result = project.run("c", *(["--workdir", str(work_dir)] if work_dir else []))
expected = Path(project.path, work_dir) if work_dir else Path("b")
expected = project.path / work_dir if work_dir else Path("b")
assert expected == result.state.conf.core["work_dir"]