Skip to content

Commit daffa78

Browse files
committed
fix
1 parent f2cac9d commit daffa78

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎pytest/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "testsolar-pytestx"
3-
version = "0.1.64"
3+
version = "0.1.65"
44
description = "Pytest tool for TestSolar"
55
authors = [
66
{name = "asiazhang2002", email = "asiazhang2002@gmail.com"},

‎pytest/src/testsolar_pytestx/executor.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def should_enable_header_injection() -> bool:
5454

5555

5656
# 主进程初始化(兼容非xdist场景)
57-
if should_enable_header_injection():
58-
initialize_header_injection()
57+
# if should_enable_header_injection():
58+
# initialize_header_injection()
5959

6060

6161
class PytestExecutor:
@@ -92,6 +92,8 @@ def pytest_runtest_logstart(self, nodeid: str, location: Any) -> None:
9292

9393
# 设置当前测试用例的nodeid到上下文
9494
if should_enable_header_injection():
95+
logger.info("Initializing header injection in pytest process")
96+
initialize_header_injection()
9597
testcase_class_name = testcase_name.split("?", 1)[-1]
9698
set_current_test_nodeid(testcase_class_name)
9799

‎pytest/testtool.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ schemaVersion: 1.0
22
name: pytest
33
nameZh: pytest自动化测试
44
lang: python
5-
version: '0.1.64'
5+
version: '0.1.65'
66
langType: INTERPRETED
77
description: |-
88
pytest是一个成熟的全功能Python测试工具,可以帮助您编写更好的程序。此测试工具允许您在TestSolar上运行pytest。

‎pytest/uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)