Skip to content

Commit b7e1541

Browse files
committed
test: 修复测试
1 parent b6488a6 commit b7e1541

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/publish/process/test_pull_request.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,8 @@ async def test_process_pull_request(app: App, mocker: MockerFixture) -> None:
121121

122122
# NOTE: 不知道为什么会调用两次
123123
# 那个 0 不知道哪里来的。
124-
mock_sleep.assert_has_awaits(
125-
[
126-
mocker.call(120),
127-
mocker.call(0),
128-
] # type: ignore
129-
)
124+
# 在 GitHub Actions 上又只有一个了,看来是本地的环境问题。
125+
mock_sleep.assert_awaited_once_with(120)
130126

131127

132128
async def test_process_pull_request_not_merged(app: App, mocker: MockerFixture) -> None:

0 commit comments

Comments
 (0)