from unittest import mock @pytest.mark.django_db def test_process_payments_fail(mocker): with mock.patch('stripe.Customer.create') as mock_customer: ...
確定! 回上一頁