3030
3131def test_authentication_configuration () -> None :
3232 """Test the AuthenticationConfiguration constructor."""
33-
3433 auth_config = AuthenticationConfiguration (
3534 module = AUTH_MOD_NOOP ,
3635 skip_tls_verification = False ,
@@ -56,7 +55,6 @@ def test_authentication_configuration() -> None:
5655
5756def test_authentication_configuration_rh_identity () -> None :
5857 """Test the AuthenticationConfiguration with RH identity token."""
59-
6058 auth_config = AuthenticationConfiguration (
6159 module = AUTH_MOD_RH_IDENTITY ,
6260 skip_tls_verification = False ,
@@ -78,7 +76,6 @@ def test_authentication_configuration_rh_identity() -> None:
7876
7977def test_authentication_configuration_rh_identity_default_value () -> None :
8078 """Test the AuthenticationConfiguration with RH identity token."""
81-
8279 auth_config = AuthenticationConfiguration (
8380 module = AUTH_MOD_RH_IDENTITY ,
8481 skip_tls_verification = False ,
@@ -100,7 +97,6 @@ def test_authentication_configuration_rh_identity_default_value() -> None:
10097
10198def test_authentication_configuration_rh_identity_one_entitlement () -> None :
10299 """Test the AuthenticationConfiguration with RH identity token."""
103-
104100 auth_config = AuthenticationConfiguration (
105101 module = AUTH_MOD_RH_IDENTITY ,
106102 skip_tls_verification = False ,
@@ -122,7 +118,6 @@ def test_authentication_configuration_rh_identity_one_entitlement() -> None:
122118
123119def test_authentication_configuration_rh_identity_more_entitlements () -> None :
124120 """Test the AuthenticationConfiguration with RH identity token."""
125-
126121 auth_config = AuthenticationConfiguration (
127122 module = AUTH_MOD_RH_IDENTITY ,
128123 skip_tls_verification = False ,
@@ -156,7 +151,6 @@ def test_authentication_configuration_rh_identity_but_insufficient_config() -> N
156151
157152 Expects a ValidationError with the message "RH Identity configuration must be specified".
158153 """
159-
160154 with pytest .raises (
161155 ValidationError , match = "RH Identity configuration must be specified"
162156 ):
@@ -171,7 +165,6 @@ def test_authentication_configuration_rh_identity_but_insufficient_config() -> N
171165
172166def test_authentication_configuration_jwk_token () -> None :
173167 """Test the AuthenticationConfiguration with JWK token."""
174-
175168 auth_config = AuthenticationConfiguration (
176169 module = AUTH_MOD_JWK_TOKEN ,
177170 skip_tls_verification = False ,
@@ -200,7 +193,6 @@ def test_authentication_configuration_jwk_token_but_insufficient_config() -> Non
200193 `module=AUTH_MOD_JWK_TOKEN` and an empty `JwkConfiguration` must raise a
201194 `ValidationError` containing the text "JwkConfiguration".
202195 """
203-
204196 with pytest .raises (ValidationError , match = "JwkConfiguration" ):
205197 AuthenticationConfiguration (
206198 module = AUTH_MOD_JWK_TOKEN ,
@@ -214,7 +206,6 @@ def test_authentication_configuration_jwk_token_but_insufficient_config() -> Non
214206
215207def test_authentication_configuration_jwk_token_but_not_config () -> None :
216208 """Test the AuthenticationConfiguration with JWK token."""
217-
218209 with pytest .raises (
219210 ValidationError ,
220211 match = "Value error, JWK configuration must be specified when using JWK token" ,
@@ -239,7 +230,6 @@ def test_authentication_configuration_jwk_broken_config() -> None:
239230 `jwk_config`, and asserts that accessing `jwk_configuration` raises
240231 ValueError with message "JWK configuration should not be None".
241232 """
242-
243233 auth_config = AuthenticationConfiguration (
244234 module = AUTH_MOD_JWK_TOKEN ,
245235 skip_tls_verification = False ,
@@ -536,7 +526,6 @@ def test_authentication_configuration_in_config_jwktoken() -> None:
536526
537527def test_authentication_configuration_api_token () -> None :
538528 """Test the AuthenticationConfiguration with API Token."""
539-
540529 auth_config = AuthenticationConfiguration (
541530 module = AUTH_MOD_APIKEY_TOKEN ,
542531 skip_tls_verification = False ,
@@ -561,7 +550,6 @@ def test_authentication_configuration_api_token() -> None:
561550
562551def test_authentication_configuration_api_key_but_insufficient_config () -> None :
563552 """Test the AuthenticationConfiguration with API Token."""
564-
565553 with pytest .raises (
566554 ValidationError ,
567555 match = "API Key configuration section must be "
0 commit comments