|
Some checks failed
CI / changes (push) Successful in 8s
CI / changes (pull_request) Successful in 6s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / openapi-codegen-check (push) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Successful in 1m59s
CI / backend-tests (pull_request) Failing after 8m52s
_count_full_years treated units=0 as a valid observation, so a series where fill_month_grid zero-filled every month still accumulated 3 full years and passed the _MIN_FULL_YEARS guard. Zero-filled months carry no seasonal signal, so they must be skipped in the year counter — the same way None values already were. Fix: skip v==0 alongside v is None in _count_full_years. Add four tests: zero-filled 36-month series → n_full_years=0/applied=False; partial-coverage years (only 6 non-zero months/year) → not counted as full; real non-zero series still passes guard; normalize_demand on zero-filled SalesSeries returns series unchanged. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_affordability.py | ||
| test_confidence_engine.py | ||
| test_demand_normalization.py | ||
| test_demand_supply_forecast.py | ||
| test_macro_coefficient.py | ||
| test_macro_series.py | ||
| test_normalize.py | ||
| test_orchestrator.py | ||
| test_product_scoring.py | ||
| test_rate_sensitivity.py | ||
| test_recommendation.py | ||
| test_regression.py | ||
| test_report.py | ||
| test_report_assembler.py | ||
| test_sales_series.py | ||
| test_scenarios.py | ||
| test_special_indices.py | ||
| test_what_to_build.py | ||