We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ddb6ed7 + f3eea30 commit d333a5bCopy full SHA for d333a5b
1 file changed
conftest.py
@@ -3,7 +3,7 @@
3
# Purpose
4
# -------
5
# Treat every Python sample under doc-samples/agents/python/**
6
-# as a Pytest test item. The script “passes” if it runs without
+# as a Pytest test item. The script "passes" if it runs without
7
# raising an exception (exit code 0).
8
#
9
# How it works
@@ -49,7 +49,7 @@ def pytest_collect_file(parent, path):
49
`path` is a py.path.local object; convert to Path for easier checks.
50
"""
51
if path.ext == ".py" and _is_under_sample_root(pathlib.Path(path)):
52
- return SampleItem.from_parent(parent, fspath=path)
+ return SampleItem.from_parent(parent, name=path.basename, fspath=path)
53
54
55
class SampleItem(pytest.Item):
0 commit comments