Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Write test for StripeConnectAccount.update_from_stripe/1 #628

Copy link
Copy link
@begedin

Description

@begedin
Issue body actions

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{}}
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.