Skip to content

Commit 2f88484

Browse files
[SDK-1998] code review fixies
1 parent c8562d7 commit 2f88484

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

yoti_python_sdk/tests/test_anchor.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,10 @@ def test_processing_unknown_anchor_data():
118118
(anchor.value, anchor.anchor_type, anchor.sub_type) for anchor in anchors
119119
]
120120

121-
expected_timestamp = datetime(2019, 3, 5, 10, 45, 11, 840037)
122-
actual_timestamp = anchors[0].signed_timestamp.astimezone(pytz.utc)
121+
expected_timestamp = datetime(2019, 3, 5, 10, 45, 11, 840037).replace(tzinfo=None)
122+
actual_timestamp = anchors[0].signed_timestamp.astimezone(pytz.utc).replace(tzinfo=None)
123123

124-
test_datetime_format = "%Y-%m-%d %H:%M:%S"
125-
126-
assert expected_timestamp.strftime(test_datetime_format) == \
127-
actual_timestamp.strftime(test_datetime_format)
124+
assert expected_timestamp == actual_timestamp
128125

129126
assert "document-registration-server" in [
130127
a.value for a in anchors[0].origin_server_certs.issuer

0 commit comments

Comments
 (0)