pydynamicestimator.tests.conftest

Shared pytest fixtures.

Two safeguards for the headless test suite:

  1. The default config enables small_signal_analysis so an interactive run.py shows the modal report and participation figures. That path ends in a blocking plt.show and must never fire during tests — so the autouse fixture forces the flag off. A test that exercises the analysis opts back in with small_signal_analysis=True in config.updated(...).

  2. Importing pydynamicestimator.run selects the interactive TkAgg backend. The fixture re-forces the non-interactive Agg backend before every test so a stray plt.show(block=True) is a no-op and can never halt the suite.

Functions

_headless_no_blocking_plots()

Module Contents

pydynamicestimator.tests.conftest._headless_no_blocking_plots()[source]