Skip to content

Commit

Permalink
fix(test): provide log levels as doctest fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Oct 1, 2023
1 parent d2e55c5 commit cbe7aa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import sys
from logging import DEBUG, INFO, WARNING
from os import PathLike
from pathlib import Path, PureWindowsPath
from pprint import pprint
Expand Down Expand Up @@ -175,6 +176,9 @@ def doctest_auto_fixtures(
doctest_namespace["is_platform_darwin"] = is_platform_darwin
doctest_namespace["pprint"] = pprint
doctest_namespace["pytest"] = pytest
doctest_namespace["DEBUG"] = DEBUG
doctest_namespace["INFO"] = INFO
doctest_namespace["WARNING"] = WARNING


def pytest_sessionfinish(session, exitstatus):
Expand Down

0 comments on commit cbe7aa9

Please sign in to comment.