File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import base64
55
66
7- class IssuanceDetails (object ):
7+ class AttributeIssuanceDetails (object ):
88 def __init__ (self , data_entry ):
99 self .__token = base64 .b64encode (data_entry .issuance_token )
1010 self .__expiry_date = date_parser .datetime_with_microsecond (
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
3- from yoti_python_sdk .issuance_details import IssuanceDetails
3+ from yoti_python_sdk .attribute_issuance_details import AttributeIssuanceDetails
44from yoti_python_sdk .protobuf .share_public_api import ThirdPartyAttribute_pb2
55from yoti_python_sdk .protobuf .share_public_api import ExtraData_pb2
66
@@ -21,7 +21,7 @@ def __init__(self, raw):
2121 ):
2222 attribute = ThirdPartyAttribute_pb2 .ThirdPartyAttribute ()
2323 attribute .MergeFromString (data_entry .value )
24- self .__attribute_issuance_details = IssuanceDetails (attribute )
24+ self .__attribute_issuance_details = AttributeIssuanceDetails (attribute )
2525
2626 @property
2727 def attribute_issuance_details (self ):
Original file line number Diff line number Diff line change 22
33import os .path
44from yoti_python_sdk .tests import file_helper
5- from yoti_python_sdk .issuance_details import IssuanceDetails
5+ from yoti_python_sdk .attribute_issuance_details import AttributeIssuanceDetails
66from yoti_python_sdk .protobuf .share_public_api import ThirdPartyAttribute_pb2
77from yoti_python_sdk .protobuf .share_public_api import IssuingAttributes_pb2
88from datetime import datetime
@@ -33,7 +33,7 @@ def test_should_parse_third_party_attribute_correctly():
3333 proto = ThirdPartyAttribute_pb2 .ThirdPartyAttribute ()
3434 proto .MergeFromString (thirdparty_attribute_bytes )
3535
36- issuance_details = IssuanceDetails (proto )
36+ issuance_details = AttributeIssuanceDetails (proto )
3737
3838 assert issuance_details .attributes [0 ].name == "com.thirdparty.id"
3939 assert issuance_details .token == base64 .b64encode (
@@ -48,6 +48,6 @@ def test_should_parse_third_party_attribute_correctly():
4848def test_should_return_none_if_error_in_parsing_date (expiry_date ):
4949 proto = create_issuance_test_proto ("someToken" , expiry_date )
5050
51- issuance_details = IssuanceDetails (proto )
51+ issuance_details = AttributeIssuanceDetails (proto )
5252
5353 assert issuance_details .expiry_date is None
You can’t perform that action at this time.
0 commit comments