Rename pathlib hook parameters (#9363)
* Rename pytest_ignore_collect fspath parameter to collection_path * Rename pytest_collect_file fspath parameter to file_path * Rename pytest_pycollect_makemodule fspath parameter to module_path * Rename pytest_report_header startpath parameter to start_path * Rename pytest_report_collectionfinish startpath parameter to start_path * Update docs with the renamed parameters * Use pytest-flakes fork temporarily to prove it works * Use pytest-flakes 4.0.5
This commit is contained in:
@@ -1317,7 +1317,7 @@ def test_xfail_item(pytester: Pytester) -> None:
|
||||
def runtest(self):
|
||||
pytest.xfail("Expected Failure")
|
||||
|
||||
def pytest_collect_file(fspath, parent):
|
||||
def pytest_collect_file(file_path, parent):
|
||||
return MyItem.from_parent(name="foo", parent=parent)
|
||||
"""
|
||||
)
|
||||
@@ -1391,7 +1391,7 @@ def test_mark_xfail_item(pytester: Pytester) -> None:
|
||||
def runtest(self):
|
||||
assert False
|
||||
|
||||
def pytest_collect_file(fspath, parent):
|
||||
def pytest_collect_file(file_path, parent):
|
||||
return MyItem.from_parent(name="foo", parent=parent)
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user