@@ -54,13 +54,13 @@ def test_attribute_issuance_details_should_return_nil_when_no_data_entries():
54
54
55
55
56
56
def test_should_return_first_matching_third_party_attribute ():
57
- expiry_date = datetime .now (). isoformat ()
57
+ expiry_date = datetime .now ()
58
58
59
59
thirdparty_attribute1 = create_third_party_test_data (
60
- "tokenValue1" , expiry_date , "attributeName1"
60
+ "tokenValue1" , expiry_date . isoformat () , "attributeName1"
61
61
)
62
62
thirdparty_attribute2 = create_third_party_test_data (
63
- "tokenValue2" , expiry_date , "attributeName2"
63
+ "tokenValue2" , expiry_date . isoformat () , "attributeName2"
64
64
)
65
65
66
66
parsed_extra_data = ExtraData (
@@ -81,7 +81,7 @@ def test_should_parse_multiple_issuing_attributes():
81
81
result = extra_data .attribute_issuance_details
82
82
assert result is not None
83
83
assert result .token == "someIssuanceToken"
84
- assert result .expiry_date == " 2019-10-15T22:04:05.123Z"
84
+ assert result .expiry_date == datetime ( 2019 , 10 , 15 , 22 , 4 , 5 , 123000 )
85
85
assert result .attributes [0 ].name == "com.thirdparty.id"
86
86
assert result .attributes [1 ].name == "com.thirdparty.other_id"
87
87
@@ -110,8 +110,10 @@ def test_should_handle_no_issuing_attributes():
110
110
111
111
def test_should_handle_no_issuing_attribute_definitions ():
112
112
tokenValue = "tokenValue"
113
- expiry_date = datetime .now ().isoformat ()
114
- thirdparty_attribute = create_third_party_test_data (tokenValue , expiry_date )
113
+ expiry_date = datetime .now ()
114
+ thirdparty_attribute = create_third_party_test_data (
115
+ tokenValue , expiry_date .isoformat ()
116
+ )
115
117
extra_data = ExtraData (create_extra_data ([thirdparty_attribute ]))
116
118
117
119
result = extra_data .attribute_issuance_details
0 commit comments