runtime
498 / 500
question 498 Production Readiness Capstone · hard

Test the release gate

can_release(results, required) is the last line of defence before production. Its contract: results maps check name → True/False for the checks that ran; it returns (True, []) only when every required check ran and passed; otherwise (False, reasons), where reasons are sorted texts "<name>: failed" or "<name>: missing" for required checks only (failures of checks that aren't required don't block). Write tests that pass for a correct gate and catch broken ones. Leave the calls to Check.

Targetcan_release(results, required) → (ok, reasons)
Your teststest_ functions or a TestCase in your file
Gradedpass for a correct gate, fail for each of three broken gates

Loading your progress…

Test the release gate — Python practice · Runtime