モックを使った単体テストに関する記事をたくさん見てきました。
カードの詳細を支払いゲートウェイに送信する簡単なチェックアウトフォームがあります。Behave テストで支払いゲートウェイの応答をモックすることは可能ですか?
@then(u'I submitted checkout form')
def submit_checkout_form(context):
"Mock your response Do not send/post request to payment gateway, but create order"
@then(u'I see my order successfully created')
def inspect_order_page(context):
"Thank you page: check product & price"
Behave テストでモックすることは可能ですか?