An agent claims the discount function is tested because its example passes. Review checks.py, explain the gap, and improve check_discount(calculate) using plain assertions. The injected callable accepts integer cents and an integer discount percentage in [0,100]; it returns cents after applying the discount, rounding half-up once. Inputs are nonnegative. The shipped calculator in discount.py is one implementation of this contract.
Your checks must accept correct implementations and reject implementations that round the wrong way (always down, always up, or ties to even), mishandle a 100% discount, or mishandle a 0% discount. A failing assertion is the only accepted signal of detecting a defect; exceptions, skipped checks, and unconditional failures are not successful detection. You edit the tests, not the calculator.