File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
import base64
5
5
6
6
7
- class IssuanceDetails (object ):
7
+ class AttributeIssuanceDetails (object ):
8
8
def __init__ (self , data_entry ):
9
9
self .__token = base64 .b64encode (data_entry .issuance_token )
10
10
self .__expiry_date = date_parser .datetime_with_microsecond (
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- from yoti_python_sdk .issuance_details import IssuanceDetails
3
+ from yoti_python_sdk .attribute_issuance_details import AttributeIssuanceDetails
4
4
from yoti_python_sdk .protobuf .share_public_api import ThirdPartyAttribute_pb2
5
5
from yoti_python_sdk .protobuf .share_public_api import ExtraData_pb2
6
6
@@ -21,7 +21,7 @@ def __init__(self, raw):
21
21
):
22
22
attribute = ThirdPartyAttribute_pb2 .ThirdPartyAttribute ()
23
23
attribute .MergeFromString (data_entry .value )
24
- self .__attribute_issuance_details = IssuanceDetails (attribute )
24
+ self .__attribute_issuance_details = AttributeIssuanceDetails (attribute )
25
25
26
26
@property
27
27
def attribute_issuance_details (self ):
Original file line number Diff line number Diff line change 2
2
3
3
import os .path
4
4
from 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
6
6
from yoti_python_sdk .protobuf .share_public_api import ThirdPartyAttribute_pb2
7
7
from yoti_python_sdk .protobuf .share_public_api import IssuingAttributes_pb2
8
8
from datetime import datetime
@@ -33,7 +33,7 @@ def test_should_parse_third_party_attribute_correctly():
33
33
proto = ThirdPartyAttribute_pb2 .ThirdPartyAttribute ()
34
34
proto .MergeFromString (thirdparty_attribute_bytes )
35
35
36
- issuance_details = IssuanceDetails (proto )
36
+ issuance_details = AttributeIssuanceDetails (proto )
37
37
38
38
assert issuance_details .attributes [0 ].name == "com.thirdparty.id"
39
39
assert issuance_details .token == base64 .b64encode (
@@ -48,6 +48,6 @@ def test_should_parse_third_party_attribute_correctly():
48
48
def test_should_return_none_if_error_in_parsing_date (expiry_date ):
49
49
proto = create_issuance_test_proto ("someToken" , expiry_date )
50
50
51
- issuance_details = IssuanceDetails (proto )
51
+ issuance_details = AttributeIssuanceDetails (proto )
52
52
53
53
assert issuance_details .expiry_date is None
You can’t perform that action at this time.
0 commit comments