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

Write test for StripeConnectAccount.update_from_stripe/1

Abierto
#628 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Elixir
Estrellas
234
Forks
82
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

# 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{}}`

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.