import pytest
import pyaicad as ac
needs_learning = pytest.mark.skipif(
not ac.HAS_LEARNING,
reason="this build of pyaicad has no `learning` feature (build with --features learning)",
)
def pytest_report_header(config):
return f"pyaicad learning feature: {'yes' if ac.HAS_LEARNING else 'NO (training tests skipped)'}"