Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyrno42 committed Dec 31, 2024
1 parent ac4b5c9 commit 708a78e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion esteid/mobileid/tests/test_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def test_authentication_manual_bytes(demo_mid_api, hash_type, MID_DEMO_PIN_EE_OK
with patch.object(demo_mid_api, "invoke", return_value=response_data):
expected_hash = generate_hash(hash_type, custom_random_data)

res = demo_mid_api.authenticate(MID_DEMO_PIN_EE_OK, MID_DEMO_PHONE_EE_OK, hash_type=hash_type, random_bytes=custom_random_data)
res = demo_mid_api.authenticate(
MID_DEMO_PIN_EE_OK, MID_DEMO_PHONE_EE_OK, hash_type=hash_type, random_bytes=custom_random_data
)

assert isinstance(res, AuthenticateResult)
assert res.session_id == "FAKE"
Expand Down
4 changes: 3 additions & 1 deletion esteid/smartid/tests/test_auth_and_sign_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def test_authentication_manual_bytes(demo_api, hash_type, SMARTID_DEMO_ID_CODE_E
with patch.object(demo_api, "invoke", return_value=response_data):
expected_hash = generate_hash(hash_type, custom_random_data)

res = demo_api.authenticate(SMARTID_DEMO_ID_CODE_EE, Countries.ESTONIA, hash_type=hash_type, random_bytes=custom_random_data)
res = demo_api.authenticate(
SMARTID_DEMO_ID_CODE_EE, Countries.ESTONIA, hash_type=hash_type, random_bytes=custom_random_data
)

assert isinstance(res, AuthenticateResult)
assert res.session_id == "FAKE"
Expand Down

0 comments on commit 708a78e

Please # to comment.