Skip to content

Commit 7143c0b

Browse files
refactor(fill): remove spaces from test ids/fixture names (#2009)
* refactor(benchmark): remvoe space from test name * refactor: prevent trailing space
1 parent 2f97840 commit 7143c0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pytest_plugins/filler/filler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ def pytest_collection_modifyitems(
11161116
"""
11171117
items_for_removal = []
11181118
for i, item in enumerate(items):
1119+
item.name = item.name.strip().replace(" ", "-")
11191120
params: Dict[str, Any] | None = None
11201121
if isinstance(item, pytest.Function):
11211122
params = item.callspec.params

0 commit comments

Comments
 (0)