Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""Root pytest configuration for cihai-cli."""

from __future__ import annotations

import typing as t

import pytest


@pytest.fixture(autouse=True)
def _doctest_monkeypatch(
doctest_namespace: dict[str, object],
) -> t.Iterator[None]:
"""Expose monkeypatch in source doctests and undo env changes after use."""
monkeypatch = pytest.MonkeyPatch()
doctest_namespace["monkeypatch"] = monkeypatch
yield
monkeypatch.undo()
3 changes: 0 additions & 3 deletions docs/_ext/__init__.py

This file was deleted.

Loading
Loading