Skip to content

Commit 5ee3dd4

Browse files
author
John Backus
committed
remove verification type
1 parent 87e4236 commit 5ee3dd4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

blockscore/api/verification.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ def __init__(self, client):
88
#
99
# '/verifications' POST
1010
#
11-
# type -
1211
# date_of_birth -
1312
# identification -
1413
# name -
1514
# address -
16-
def create(self, type, date_of_birth, identification, name, address, options = {}):
15+
def create(self, date_of_birth, identification, name, address, options = {}):
1716
body = options['body'] if 'body' in options else {}
18-
body['type'] = type
1917
body['date_of_birth'] = date_of_birth
2018
body['identification'] = identification
2119
body['name'] = name

test/verifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def setUp(self):
1313
except KeyError:
1414
sys.stderr.write("To run tests, you must have a BLOCKSCORE_API environment variable with a test api key\n")
1515
sys.exit(2)
16-
self.test_identity = ['us_citizen','1980-01-01',{'ssn': '0000'},{'first': 'john', 'last': 'doe'},{'street1': '1 Infinite Loop', 'city': 'Palo Alto', 'state': 'ca', 'postal_code': '94309', 'country_code': 'us'}]
16+
self.test_identity = ['1980-01-01',{'ssn': '0000'},{'first': 'john', 'last': 'doe'},{'street1': '1 Infinite Loop', 'city': 'Palo Alto', 'state': 'ca', 'postal_code': '94309', 'country_code': 'us'}]
1717

1818
def test_create_verification(self):
1919
verif = self.client.verification.create(*self.test_identity)
20-
self.assertEqual(verif.body['date_of_birth'], self.test_identity[1])
20+
self.assertEqual(verif.body['date_of_birth'], self.test_identity[0])
2121

2222
def test_retrieve_verification(self):
2323
verif = self.client.verification.create(*self.test_identity)

0 commit comments

Comments
 (0)