Skip to content

Commit f09b23d

Browse files
committed
move mock
1 parent 4e09189 commit f09b23d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_app/tests/jwt_consumer/common/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_validate_trusted_proxy_header_bad_cached_key_but_correct_setting(self,
1313
{"key": rsa_keypair.public, "cached": False},
1414
]
1515
with override_settings(ANSIBLE_BASE_JWT_KEY=rsa_keypair.public):
16-
with mock.patch("ansible_base.jwt_consumer.common.util.JWTCert.get_decryption_key", create_mock_method(field_dicts)):
16+
with mock.patch("ansible_base.jwt_consumer.common.cert.JWTCert.get_decryption_key", create_mock_method(field_dicts)):
1717
assert validate_x_trusted_proxy_header(generate_x_trusted_proxy_header(rsa_keypair.private))
1818

1919
def test_validate_trusted_proxy_header_no_key(self, caplog):

0 commit comments

Comments
 (0)