mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-21 11:57:57 +00:00
fix case in which if no source PKGBUILDs were updated, an exception will occur
This commit is contained in:
1 parent
3aeaa8ce2c
commit
0d1a890bd0
10 files changed
+90
-87
No files matched your search
@@ -264,7 +264,7 @@ def test_commit(sources: Sources, mocker: MockerFixture) -> None:
|
||||
commit_message = "Commit message"
|
||||
sources.commit(local, commit_message=commit_message)
|
||||
check_output_mock.assert_called_once_with(
|
||||
"git", "commit", "--all", "--message", commit_message,
|
||||
"git", "commit", "--allow-empty", "--message", commit_message,
|
||||
exception=None, cwd=local, logger=pytest.helpers.anyvar(int)
|
||||
)
|
||||
|
||||
@@ -278,7 +278,7 @@ def test_commit_autogenerated(sources: Sources, mocker: MockerFixture) -> None:
|
||||
local = Path("local")
|
||||
sources.commit(Path("local"))
|
||||
check_output_mock.assert_called_once_with(
|
||||
"git", "commit", "--all", "--message", pytest.helpers.anyvar(str, strict=True),
|
||||
"git", "commit", "--allow-empty", "--message", pytest.helpers.anyvar(str, strict=True),
|
||||
exception=None, cwd=local, logger=pytest.helpers.anyvar(int)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user