Skip to content

Commit

Permalink
Update tests/test_updatediff.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jairo Llopis <[email protected]>
  • Loading branch information
hparfr and yajo authored Oct 24, 2023
1 parent cf12d5c commit 98b8880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_updatediff.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ def test_file_removed(tmp_path_factory: pytest.TempPathFactory) -> None:
# Subproject updates
with local.cwd(dst):
Path(".gitignore").write_text("toignore.txt")
git("commit", "-am", "ignore file")
git("add", ".gitignore")
git("commit", "-m", "ignore file")
with pytest.raises(
UserMessageError, match="Enable overwrite to update a subproject."
):
Expand Down

0 comments on commit 98b8880

Please sign in to comment.