pydynamicestimator.tests.conftest
Shared pytest fixtures.
Two safeguards for the headless test suite:
The default
configenablessmall_signal_analysisso an interactiverun.pyshows the modal report and participation figures. That path ends in a blockingplt.showand must never fire during tests — so the autouse fixture forces the flag off. A test that exercises the analysis opts back in withsmall_signal_analysis=Trueinconfig.updated(...).Importing
pydynamicestimator.runselects the interactive TkAgg backend. The fixture re-forces the non-interactive Agg backend before every test so a strayplt.show(block=True)is a no-op and can never halt the suite.