[go: up one dir, main page]

File: conftest.py

package info (click to toggle)
specutils 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,924 kB
  • sloc: python: 10,599; makefile: 110
file content (9 lines) | stat: -rw-r--r-- 313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from importlib.util import find_spec
import pkg_resources

entry_points = []
for entry_point in pkg_resources.iter_entry_points('pytest11'):
    entry_points.append(entry_point.name)

if "asdf_schema_tester" not in entry_points and find_spec('asdf') is not None:
    pytest_plugins = ['asdf.tests.schema_tester']