File: conftest.py

package info (click to toggle)
mplcursors 0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: python: 1,915; makefile: 14; sh: 9
file content (8 lines) | stat: -rw-r--r-- 237 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
from pathlib import Path


def pytest_make_parametrize_id(config, val):
    if isinstance(val, type(lambda: None)) and val.__qualname__ != "<lambda>":
        return val.__qualname__
    if isinstance(val, Path):
        return str(val)