add SIM lint
This commit is contained in:
@@ -27,10 +27,9 @@ def test_commit_file(git_repo: Path) -> None:
|
||||
|
||||
def test_commit_file_outside_git_raises_error(git_repo: Path) -> None:
|
||||
# create a file outside the git (a temporary file)
|
||||
with tempfile.NamedTemporaryFile() as tmp:
|
||||
with tempfile.NamedTemporaryFile() as tmp, pytest.raises(ClanError):
|
||||
# this should not fail but skip the commit
|
||||
with pytest.raises(ClanError):
|
||||
git.commit_file(Path(tmp.name), git_repo, "test commit")
|
||||
git.commit_file(Path(tmp.name), git_repo, "test commit")
|
||||
|
||||
|
||||
def test_commit_file_not_existing_raises_error(git_repo: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user