From cb80e709d6f2cef720b9812ce54c9b9eafc7da1e Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 21 Mar 2025 11:21:26 +0100 Subject: [PATCH] code styling --- src/test/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/test.py b/src/test/test.py index 2675e66..c0e75e0 100644 --- a/src/test/test.py +++ b/src/test/test.py @@ -182,8 +182,9 @@ def test_our_config_token(): nv_response_certificate_configuration = NV_CONFIG_TOKEN_RESPONSE.get('certificateConfiguration') nv_response_public_cert = nv_response_certificate_configuration.get('publicCert').encode('utf-8') nv_response_parsed_cert = x509.load_pem_x509_certificate(nv_response_public_cert) - jwt_decode_key = jwk.construct(nv_response_parsed_cert.public_bytes(encoding=Encoding.PEM), - algorithm=ALGORITHMS.RS256) + + nv_response_parsed_cert_as_pem = nv_response_parsed_cert.public_bytes(encoding=Encoding.PEM) + jwt_decode_key = jwk.construct(nv_response_parsed_cert_as_pem, algorithm=ALGORITHMS.RS256) ### build payload