We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066a262 commit acbb42fCopy full SHA for acbb42f
pymango/tests/tests_resources.py
@@ -35,6 +35,16 @@ def _create_token():
35
return token_response.get("uid")
36
37
38
+def _create_ccv():
39
+ ccv_response = mango.client.req(
40
+ public_test_key,
41
+ "post",
42
+ "v1/ccvs/",
43
+ data={"ccv": randint(100, 999)}
44
+ )
45
+ return ccv_response.get("uid")
46
+
47
48
#
49
# Charges
50
@@ -155,6 +165,12 @@ def test_cards_get():
155
165
ok_(card)
156
166
157
167
168
+def test_cards_update():
169
+ """Should update card CCV"""
170
+ card_uid = mango.Cards.get(mango.Cards.list()[0].get("uid")).get("uid")
171
+ ok_(mango.Cards.update(card_uid, ccv=_create_ccv()))
172
173
158
174
@raises(mango.error.NotFound)
159
175
def test_cards_delete():
160
176
"""Should delete a Card"""
0 commit comments