Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions docs/source/business_ch16_seasonality_baselines.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. |trackd_run| replace:: d16
.. include:: _includes/track_d_run_strip.rst

Track D — Chapter 16
====================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. |trackd_run| replace:: d17
.. include:: _includes/track_d_run_strip.rst

Track D — Chapter 17
====================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. |trackd_run| replace:: d18
.. include:: _includes/track_d_run_strip.rst

Track D — Chapter 18
====================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. |trackd_run| replace:: d19
.. include:: _includes/track_d_run_strip.rst

Track D — Chapter 19
====================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.. |trackd_run| replace:: d20
.. include:: _includes/track_d_run_strip.rst

Track D — Chapter 20
====================

Expand Down
22 changes: 22 additions & 0 deletions tests/test_workbook_track_d_runstrip_ch16_20.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from __future__ import annotations

from pathlib import Path


def test_track_d_ch16_20_runstrip_present() -> None:
"""Guardrail: Track D Ch16–Ch20 docs include the PyPI run-strip."""

docs = Path("docs/source")

cases = {
"business_ch16_seasonality_baselines.rst": "d16",
"business_ch17_revenue_forecasting_segmentation_drivers.rst": "d17",
"business_ch18_expense_forecasting_fixed_variable_step_payroll.rst": "d18",
"business_ch19_cash_flow_forecasting_direct_method_13_week.rst": "d19",
"business_ch20_integrated_forecasting_three_statements.rst": "d20",
}

for rel, run_id in cases.items():
text = (docs / rel).read_text(encoding="utf-8")
assert ".. include:: _includes/track_d_run_strip.rst" in text
assert f".. |trackd_run| replace:: {run_id}" in text