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?
Discussion 0
Join free to post in the discussion.
Related questions
- What a pytest fixture doesAutomation Test Engineer
- Arrange, Act, AssertAutomation Test Engineer
- An upside-down test pyramidAutomation Test Engineer
- Sharing fixtures in pytestAutomation Test Engineer
- Asserting that an error is raisedAutomation Test Engineer
- Running pytest in parallelAutomation Test Engineer
- A keyword-driven frameworkAutomation Test Engineer
- Layers in a test frameworkAutomation Test Engineer