Skip to content

Commit

Permalink
Refactor the test using Pierre's suggestion.
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Sassoulas <[email protected]>
  • Loading branch information
mbyrnepr2 and Pierre-Sassoulas committed Jun 12, 2024
1 parent 64e2c66 commit 5084f0f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/config/test_find_default_config_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@ def test_has_config(content: str, expected: bool, tmp_path: Path) -> None:
f.write(content)
assert _cfg_has_config(fake_conf) == expected

fake_ini = tmp_path / "tox.ini"
with open(fake_ini, "w", encoding="utf8") as f:
f.write(content)
assert _cfg_has_config(fake_ini) == expected


def test_non_existent_home() -> None:
"""Test that we handle a non-existent home directory.
Expand Down

0 comments on commit 5084f0f

Please sign in to comment.