File: conftest.py

package info (click to toggle)
python-semver 2.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 296 kB
  • sloc: python: 1,589; makefile: 29
file content (13 lines) | stat: -rw-r--r-- 256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest
import semver
import sys

sys.path.insert(0, "docs")

from coerce import coerce  # noqa:E402


@pytest.fixture(autouse=True)
def add_semver(doctest_namespace):
    doctest_namespace["semver"] = semver
    doctest_namespace["coerce"] = coerce