test(docs): assert docs/REASON_CODES.md gives every ReasonCode a real...
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: Shihasz
Adds a unit test (tests/unit/test_reason_codes_documented.py) that cross-checks docs/REASON_CODES.md against the ReasonCode enum in src/doberman/models.py.
Specifically, it asserts that:
ReasonCode member has a corresponding row in the documentation table.Closes [#191]
tests/unit/test_reason_codes_documented.py::test_all_reason_codes_are_documentedtests/unit/test_reason_codes_documented.py::test_no_extra_unknown_codes_in_docsReasonCode to ensure immediate, isolated feedback in pytest output if any specific code fails documentation checks in the future.Path and string splitting) with zero external markdown dependencies.pytest and ruff.
Ticket changed by: fu351
Originally posted by: fu351
@Shihasz I re-checked REASON_CODES.md against the enum this week: complete, all 56 codes. Your test from this PR is exactly why that stays true.
Quick community roll-call: are you in the Doberman Discord? If yes, drop your handle here (or DM me there) so I can match the GitHub side of your work to your Discord name. If not, you're warmly invited: https://discord.gg/Sfy5XGNqty