code-corps / code-corps/code-corps-api

Write test for StripeConnectAccount.update_from_stripe/1

オープン
#628 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Elixir
スター
234
フォーク
82
PR マージ指標
30日以内にマージされた PR はありません

説明

# Problem

Test should ensure the function returns an {:ok, %StripeConnectAccount{}} with valid data. It should also ensure that the record was actually updated with data from stripe testing.

An additional test should ensure that, if there is no local record with the specified `id_from_stripe`, the response is `{:error, :not_found}`

Lastly, a test should ensure that, if the attributes provided contain invalid data, an `{:error, changeset}` is returned.

### Something we cannot test right now, since we do not have the infrastructure
* If the stripe API raises an error, it returns `{:error, %StripeAPIErrorResponse{}}`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。