Skip to content

Commit

Permalink
test: migrate from tmpdir to tmp_path
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jan 1, 2025
1 parent 18a85c3 commit edca048
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/darker/tests/test_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,11 +666,11 @@ def black_config_file_and_options_files(request, tmp_path_factory):
dict(options=["--preview"], expect_opts=["--preview"]),
expect_opts=[],
)
def test_ruff_options(monkeypatch, tmpdir, git_repo, options, expect_opts):
def test_ruff_options(monkeypatch, tmp_path, git_repo, options, expect_opts):
"""Ruff options from the command line are passed correctly to Ruff."""
monkeypatch.chdir(tmpdir)
(tmpdir / "pyproject.toml").write("[tool.ruff]\n")
(tmpdir / "ruff.cfg").write(
monkeypatch.chdir(tmp_path)
(tmp_path / "pyproject.toml").write_text("[tool.ruff]\n")
(tmp_path / "ruff.cfg").write_text(
dedent(
"""
[tool.ruff]
Expand Down

0 comments on commit edca048

Please sign in to comment.