Skip to content

Commit

Permalink
test: 修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Dec 4, 2024
1 parent 13d73d1 commit fbbcb48
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 179 deletions.
1 change: 0 additions & 1 deletion examples/noneflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ jobs:
env:
APP_ID: ${{ secrets.APP_ID }}
PRIVATE_KEY: ${{ secrets.APP_KEY }}
PRE_COMMIT_HOME: /github/workspace/.cache/.pre-commit
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies = [
"jinja2>=3.1.4",
"nonebot-adapter-github>=0.4.1",
"nonebot2>=2.4.0",
"pre-commit>=4.0.1",
"pydantic-extra-types>=2.10.0",
"pyjson5>=1.6.7",
"tzdata>=2024.2",
Expand Down
10 changes: 0 additions & 10 deletions tests/github/config/process/test_config_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ async def test_config_process_pull_request(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "push", "origin", "--delete", "publish/issue76"],
check=True,
Expand Down Expand Up @@ -171,11 +166,6 @@ async def test_process_config_pull_request_not_merged(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "push", "origin", "--delete", "publish/issue76"],
check=True,
Expand Down
50 changes: 0 additions & 50 deletions tests/github/publish/process/test_publish_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ async def test_bot_process_publish_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down Expand Up @@ -348,11 +343,6 @@ async def test_adapter_process_publish_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down Expand Up @@ -640,11 +630,6 @@ async def test_plugin_process_publish_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down Expand Up @@ -937,11 +922,6 @@ async def test_plugin_process_publish_check_re_run(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down Expand Up @@ -1161,11 +1141,6 @@ async def test_edit_title(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down Expand Up @@ -1471,11 +1446,6 @@ async def test_process_publish_check_not_pass(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -1546,11 +1516,6 @@ async def test_issue_state_closed(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -1845,11 +1810,6 @@ async def test_skip_plugin_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -1984,11 +1944,6 @@ async def test_convert_pull_request_to_draft(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -2148,11 +2103,6 @@ async def test_process_publish_check_ready_for_review(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "publish/issue80"],
check=True,
Expand Down
30 changes: 0 additions & 30 deletions tests/github/remove/process/test_remove_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,6 @@ async def test_process_remove_bot_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "remove/issue80"],
check=True,
Expand Down Expand Up @@ -377,11 +372,6 @@ async def test_process_remove_plugin_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "switch", "-C", "remove/issue80"],
check=True,
Expand Down Expand Up @@ -524,11 +514,6 @@ async def test_process_remove_not_found_check(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -645,11 +630,6 @@ async def test_process_remove_author_info_not_eq(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -764,11 +744,6 @@ async def test_process_remove_issue_info_not_found(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down Expand Up @@ -864,11 +839,6 @@ async def test_process_remove_driver(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
] # type: ignore
)

Expand Down
10 changes: 0 additions & 10 deletions tests/github/remove/process/test_remove_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ async def test_remove_process_pull_request(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "push", "origin", "--delete", "publish/issue76"],
check=True,
Expand Down Expand Up @@ -177,11 +172,6 @@ async def test_process_remove_pull_request_not_merged(
check=True,
capture_output=True,
),
mocker.call(
["pre-commit", "install", "--install-hooks"],
check=True,
capture_output=True,
),
mocker.call(
["git", "push", "origin", "--delete", "publish/issue76"],
check=True,
Expand Down
77 changes: 0 additions & 77 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fbbcb48

Please sign in to comment.