Skip to content

Commit 91508e9

Browse files
Fix pytest hookimpl parameter name to match hookspec
Rename _call to call in pytest_runtest_makereport hook to fix PluginValidationError. Pytest requires hookimpl parameter names to exactly match the hookspec. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 362c424 commit 91508e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xtest/fixtures/audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def test_without_logs():
265265

266266
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
267267
def pytest_runtest_makereport(
268-
item: pytest.Item, _call: pytest.CallInfo[None]
268+
item: pytest.Item, call: pytest.CallInfo[None]
269269
) -> Generator[None, pytest.TestReport, pytest.TestReport]:
270270
"""Pytest hook to capture test results for audit log collection.
271271

0 commit comments

Comments
 (0)