testing/test_entry_points.py
raw| 1 | # mypy: allow-untyped-defs |
| 2 | from __future__ import annotations |
| 3 | |
| 4 | import importlib.metadata |
| 5 | |
| 6 | |
| 7 | def test_pytest_entry_points_are_identical(): |
| 8 | dist = importlib.metadata.distribution("pytest") |
| 9 | entry_map = {ep.name: ep for ep in dist.entry_points} |
| 10 | assert entry_map["pytest"].value == entry_map["py.test"].value |