Skip to content

Commit

Permalink
Merge pull request #190 from getyoti/hotfix-2.11.2
Browse files Browse the repository at this point in the history
Hotfix 2.11.2
  • Loading branch information
MrBurtyyy authored May 4, 2020
2 parents e52b149 + 867d4a7 commit c98bf4c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sonar.host.url = https://sonarcloud.io
sonar.organization = getyoti
sonar.projectKey = getyoti:python
sonar.projectName = Python SDK
sonar.projectVersion = 2.11.1
sonar.projectVersion = 2.11.2
sonar.exclusions = yoti_python_sdk/tests/**,examples/**,yoti_python_sdk/protobuf/**/*

sonar.python.pylint.reportPath = coverage.out
Expand Down
2 changes: 1 addition & 1 deletion yoti_python_sdk/doc_scan/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, sdk_id, key, api_url=None):
if api_url is not None:
self.__api_url = api_url
else:
self.__api_url = yoti_python_sdk.YOTI_DOC_SCAN_ENDPOINT
self.__api_url = yoti_python_sdk.YOTI_DOC_SCAN_API_URL

def create_session(self, session_spec):
"""
Expand Down
7 changes: 7 additions & 0 deletions yoti_python_sdk/tests/doc_scan/test_doc_scan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,10 @@ def test_should_throw_exception_for_delete_media(_, doc_scan_client):
doc_scan_exception = ex.value # type: DocScanException
assert "Failed to delete media content" in str(doc_scan_exception)
assert 404 == doc_scan_exception.status_code


def test_should_use_correct_default_api_url(doc_scan_client):
assert (
doc_scan_client._DocScanClient__api_url
== "https://api.yoti.com:443/idverify/v1"
) # noqa
2 changes: 1 addition & 1 deletion yoti_python_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "2.11.1"
__version__ = "2.11.2"

0 comments on commit c98bf4c

Please sign in to comment.