Skip to content

Commit e2d2ca8

Browse files
committed
refactor: 修改为 output
1 parent 0e1e706 commit e2d2ca8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/plugins/github/plugins/config/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async def validate_info_from_issue(handler: IssueHandler) -> ValidationDict:
5959
test_result = await test.run("3.12")
6060

6161
# 去除颜色字符
62-
test_output = strip_ansi("\n".join(test_result.outputs))
62+
test_output = strip_ansi(test_result.output)
6363
metadata = test_result.metadata
6464
if metadata:
6565
# 从插件测试结果中获得元数据
@@ -78,8 +78,7 @@ async def validate_info_from_issue(handler: IssueHandler) -> ValidationDict:
7878
)
7979
logger.info(f"插件元数据:{metadata}")
8080
logger.info("插件测试输出:")
81-
for output in test_result.outputs:
82-
logger.info(output)
81+
logger.info(test_output)
8382

8483
# 验证插件相关信息
8584
result = validate_info(PublishType.PLUGIN, raw_data, previous_data)

tests/github/config/process/test_config_check.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ async def test_process_config_check(
7676
)
7777
mock_test_result.load = True
7878
mock_test_result.version = "1.0.0"
79+
mock_test_result.output = ""
7980
mock_docker = mocker.patch("src.providers.docker_test.DockerPluginTest.run")
8081
mock_docker.return_value = mock_test_result
8182

0 commit comments

Comments
 (0)