Skip to content

Commit

Permalink
improve test: check if "git init" succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Jan 27, 2024
1 parent 0092466 commit b6bc27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vcs/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ def test_ensure_existing_git_executable_is_found(mocker: MockerFixture) -> None:
def test_get_vcs_encoding(tmp_path: Path) -> None:
repo_path = tmp_path / "répö"
repo_path.mkdir()
subprocess.run(["git", "init"], cwd=repo_path)
assert repo_path.exists()
assert subprocess.check_call(["git", "init"], cwd=repo_path) == 0
vcs = get_vcs(repo_path)
assert vcs is not None
assert vcs._work_dir is not None
Expand Down

0 comments on commit b6bc27e

Please sign in to comment.