Skip to content
RED SAG Skills
hard20 pts · first answer countstest-automationpytesttest-doubles

A patch that does nothing

billing.py does "from gateway import charge" and calls charge(). A test uses @patch("gateway.charge"), but the real charge still runs. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions