Skip to content

Commit 41783c1

Browse files
Merge pull request #368 from stripe/ob-cant-create-disputes
Disputes are not createable
2 parents 1ca2770 + 1bd5ecc commit 41783c1

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

stripe/api_resources/dispute.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
from __future__ import absolute_import, division, print_function
22

33
from stripe import util
4-
from stripe.api_resources.abstract import CreateableAPIResource
5-
from stripe.api_resources.abstract import UpdateableAPIResource
64
from stripe.api_resources.abstract import ListableAPIResource
5+
from stripe.api_resources.abstract import UpdateableAPIResource
76

87

9-
class Dispute(CreateableAPIResource, ListableAPIResource,
10-
UpdateableAPIResource):
8+
class Dispute(ListableAPIResource, UpdateableAPIResource):
119
OBJECT_NAME = 'dispute'
1210

1311
def close(self, idempotency_key=None):

tests/api_resources/test_dispute.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ def test_list_all_disputes(self):
2424
}
2525
)
2626

27-
def test_create_dispute(self):
28-
stripe.Dispute.create(idempotency_key='foo', **DUMMY_DISPUTE)
29-
30-
self.requestor_mock.request.assert_called_with(
31-
'post',
32-
'/v1/disputes',
33-
DUMMY_DISPUTE,
34-
{'Idempotency-Key': 'foo'},
35-
)
36-
3727
def test_retrieve_dispute(self):
3828
stripe.Dispute.retrieve('dp_test_id')
3929

0 commit comments

Comments
 (0)