File: test_account_link.py

package info (click to toggle)
python-stripe 12.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,864 kB
  • sloc: python: 157,573; makefile: 13; sh: 9
file content (13 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import stripe


class TestAccountLink(object):
    def test_is_creatable(self, http_client_mock):
        resource = stripe.AccountLink.create(
            account="acct_123",
            refresh_url="https://stripe.com/failure",
            return_url="https://stripe.com/success",
            type="account_onboarding",
        )
        http_client_mock.assert_requested("post", path="/v1/account_links")
        assert isinstance(resource, stripe.AccountLink)