| 1631 | |
| 1632 | |
| 1633 | def _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 | |
| 1647 | def format_session_duration(seconds: float) -> str: |