Skip to content

Commit

Permalink
chore: 移除不需要的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 31, 2024
1 parent 15e855f commit bdc4978
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/plugins/github/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,7 @@ def side_effect(*args, **kwargs):
def assert_subprocess_run_calls(mock: MockType, commands: list[list[str]]):
calls = []
for command in commands:
# command_str = " ".join(command)

calls.append(call(command, check=True, capture_output=True))
# 暂时不考虑报错的情况,仅涉及到 stdout
# calls.append(call().stdout.decode())
# calls.append(_Call(("().stdout.decode().__str__", (), {})))
# if command_str.startswith("git diff"):
# calls.append(_Call(("().stdout.__bool__", (), {})))

mock.assert_has_calls(calls)

Expand Down

0 comments on commit bdc4978

Please sign in to comment.