Skip to content
Merged
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
22 changes: 22 additions & 0 deletions tests/calibration/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2026 John C. Travers and contributors
#
# SPDX-License-Identifier: GPL-3.0-or-later

"""Fixtures for every calibration test."""

from __future__ import annotations

import pytest

from solprop.calibration import _native


@pytest.fixture(autouse=True)
def _fresh_store_warnings(monkeypatch: pytest.MonkeyPatch) -> None: # pyright: ignore[reportUnusedFunction]
"""Give each test its own once-per-process store warnings.

The store and the profile reader warn once per message per process, so a test
expecting a warning would otherwise miss it after another test in its worker.
"""
for module in (_native.profile, _native.store):
monkeypatch.setattr(module, "_WARNED", set())
Loading