File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def format(number):
177
177
return '-' .join ((number [:3 ], number [3 :- 1 ], number [- 1 ]))
178
178
179
179
180
- def check_dgii (number , timeout = 30 ): # pragma: no cover
180
+ def check_dgii (number , timeout = 30 , verify = True ): # pragma: no cover
181
181
"""Lookup the number using the DGII online web service.
182
182
183
183
This uses the validation service run by the the Dirección General de
@@ -199,7 +199,7 @@ def check_dgii(number, timeout=30): # pragma: no cover
199
199
# this function isn't automatically tested because it would require
200
200
# network access for the tests and unnecessarily load the online service
201
201
# we use the RNC implementation and change the rnc result to cedula
202
- result = rnc .check_dgii (number , timeout )
202
+ result = rnc .check_dgii (number , timeout , verify )
203
203
if result and 'rnc' in result :
204
204
result ['cedula' ] = result .pop ('rnc' )
205
205
return result
You can’t perform that action at this time.
0 commit comments