79218471

Date: 2024-11-23 17:45:02
Score: 0.5
Natty:
Report link

You are supposed to patch the return value of get_performance.

with patch(
        target="minum_reproducible_example.get_performance",
        return_value=Mock(
            spec=Performance,
            **{"get_score.side_effect": CustomException("Mocked to always fail")}
        )
):
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: defalt