Skip to content

Commit

Permalink
make reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
helylle committed Sep 5, 2024
1 parent f83fc2f commit 03a4e50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/eduid/satosa/scimapi/statsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class RequesterCounter(ResponseMicroService):
"""

def __init__(self, config: Mapping[str, Any], *args: Any, **kwargs: Any):

super().__init__(*args, **kwargs)

statsd_config = StatsConfigMixin(**config)
Expand Down
6 changes: 4 additions & 2 deletions src/eduid/webapp/security/tests/test_webauthn.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,9 @@ def _remove(
response2 = client.post("/webauthn/remove", json=data)
return user_token, json.loads(response2.data)

def _apple_special_verify_attestation(self: FidoMetadataStore, attestation: Attestation, client_data: bytes) -> bool:
def _apple_special_verify_attestation(
self: FidoMetadataStore, attestation: Attestation, client_data: bytes
) -> bool:
if attestation.fmt is AttestationFormat.PACKED:
return self.verify_packed_attestation(attestation=attestation, client_data=client_data)
if attestation.fmt is AttestationFormat.APPLE:
Expand Down Expand Up @@ -568,7 +570,7 @@ def test_remove_wrong_csrf(self):
self.assertEqual(data["payload"]["error"]["csrf_token"], ["CSRF failed to validate"])

@patch("fido_mds.FidoMetadataStore.verify_attestation", _apple_special_verify_attestation)
def test_authenticator_information(self):
def test_authenticator_information(self):
authenticators = [YUBIKEY_4, YUBIKEY_5_NFC, MICROSOFT_SURFACE_1796, NEXUS_5, IPHONE_12, NONE_ATTESTATION]
for authenticator in authenticators:
with self.app.test_request_context():
Expand Down

0 comments on commit 03a4e50

Please sign in to comment.