File: test_setup_attempt.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-- 443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import stripe


class TestSetupAttempt(object):
    def test_is_listable(self, http_client_mock):
        resources = stripe.SetupAttempt.list(setup_intent="seti_123")
        http_client_mock.assert_requested(
            "get",
            path="/v1/setup_attempts",
            query_string="setup_intent=seti_123",
        )
        assert isinstance(resources.data, list)
        assert isinstance(resources.data[0], stripe.SetupAttempt)