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

Function _plugin_nameversions

src/_pytest/terminal.py:1633–1644  ·  view source on GitHub ↗
(plugininfo)

Source from the content-addressed store, hash-verified

1631
1632
1633def _plugin_nameversions(plugininfo) -> list[str]:
1634 values: list[str] = []
1635 for plugin, dist in plugininfo:
1636 # Gets us name and version!
1637 name = f"{dist.project_name}-{dist.version}"
1638 # Questionable convenience, but it keeps things short.
1639 if name.startswith("pytest-"):
1640 name = name[7:]
1641 # We decided to print python package names they can have more than one plugin.
1642 if name not in values:
1643 values.append(name)
1644 return values
1645
1646
1647def format_session_duration(seconds: float) -> str:

Callers 2

test_plugin_nameversionFunction · 0.90
pytest_report_headerMethod · 0.85

Calls 1

appendMethod · 0.80

Tested by 1

test_plugin_nameversionFunction · 0.72