Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
import pytest


def pytest_collect_file(path, parent):
def pytest_collect_file(file_path: Path, parent):
"""Pytest hook.

Create a collector for the given path, or None if not relevant.
The new node needs to have the specified parent as parent.
"""
p = Path(path)
p = Path(file_path)
if p.suffix == ".py" and "example" in p.name:
return Script.from_parent(parent, path=p, name=p.name)

Expand Down
Loading