MCPcopy
hub / github.com/pytest-dev/pytest / get_public_names

Function get_public_names

src/_pytest/pytester.py:216–218  ·  view source on GitHub ↗

Only return names from iterator values without a leading underscore.

(values: Iterable[str])

Source from the content-addressed store, hash-verified

214
215
216def get_public_names(values: Iterable[str]) -> list[str]:
217 """Only return names from iterator values without a leading underscore."""
218 return [x for x in values if x[0] != "_"]
219
220
221@final

Callers 2

test_funcarg_basicMethod · 0.90
test_getfixturevalueMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected