Skip to content

Commit 687c74f

Browse files
committed
Fix card brand tests
1 parent 791a9df commit 687c74f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

test/resources/Account_test.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,16 @@ def test_retrieve_card_brands(setup):
322322
'id': card_brand_create_response['id'],
323323
'account_id': test_credit_card_account['id'],
324324
'network': 'visa',
325-
'status': 'in_progress',
325+
'status': 'completed',
326326
'issuer': card_brand_create_response['issuer'],
327327
'last4': '1580',
328-
'brands': card_brand_create_response['brands'],
328+
'brands': [{
329+
+ 'art_id': 'art_pCc787cy3ciWp',
330+
+ 'id': 'brand_UBwVzXjpP4PJ6',
331+
+ 'name': 'Chase Sapphire Reserve',
332+
+ 'url': 'https://static.methodfi.com/card_brands/1b7ccaba6535cb837f802d968add4700.png'}],
329333
'shared': False,
330-
'source': card_brand_create_response['source'],
334+
'source': "network",
331335
'error': None,
332336
'created_at': card_retrieve_response['created_at'],
333337
'updated_at': card_retrieve_response['updated_at'],
@@ -345,12 +349,16 @@ async def test_list_card_brands(setup):
345349
'id': card_brand_create_response['id'],
346350
'account_id': test_credit_card_account['id'],
347351
'network': 'visa',
348-
'status': 'in_progress',
352+
'status': 'completed',
349353
'issuer': card_brand_create_response['issuer'],
350354
'last4': '1580',
351-
'brands': card_brand_create_response['brands'],
355+
'brands': [{
356+
+ 'art_id': 'art_pCc787cy3ciWp',
357+
+ 'id': 'brand_UBwVzXjpP4PJ6',
358+
+ 'name': 'Chase Sapphire Reserve',
359+
+ 'url': 'https://static.methodfi.com/card_brands/1b7ccaba6535cb837f802d968add4700.png'}],
352360
'shared': False,
353-
'source': card_brand_create_response['source'],
361+
'source': "network"
354362
'error': None,
355363
'created_at': card_brands_list_response[0]['created_at'],
356364
'updated_at': card_brands_list_response[0]['updated_at'],

0 commit comments

Comments
 (0)