Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meng-han committed Oct 14, 2024
1 parent 571f4c0 commit 0ec0d11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/confidant/routes/certificates_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_get_certificate(mocker: MockerFixture):
"key": "test_key",
}
mocker.patch(
"confidant.services.certificate_authority.acm_private_certificate_authority.ACMPrivateCertificateAuthority.issue_certificate_with_key", # noqa: E501
"confidant.services.certificate_authority.acmpca.ACMPrivateCertificateAuthority.issue_certificate_with_key", # noqa: E501
return_value=issue_certificate_with_key_return_value,
)
ret = app.test_client().get(
Expand All @@ -81,7 +81,7 @@ def test_get_certificate(mocker: MockerFixture):
"key": "test_key",
}
mocker.patch(
"confidant.services.certificate_authority.acm_private_certificate_authority.ACMPrivateCertificateAuthority.issue_certificate_with_key", # noqa: E501
"confidant.services.certificate_authority.acmpca.ACMPrivateCertificateAuthority.issue_certificate_with_key", # noqa: E501
side_effect=CertificateNotReadyError(),
)
ret = app.test_client().get(
Expand Down Expand Up @@ -188,7 +188,7 @@ def test_get_certificate_from_csr(mocker: MockerFixture):
return_value=ca_object,
)
mocker.patch(
"confidant.services.certificate_authority.acm_private_certificate_authority.ACMPrivateCertificateAuthority.issue_certificate", # noqa: E501
"confidant.services.certificate_authority.acmpca.ACMPrivateCertificateAuthority.issue_certificate", # noqa: E501
return_value={
"certificate": "test_certificate",
"certificate_chain": "test_certificate_chain",
Expand Down Expand Up @@ -292,7 +292,7 @@ def test_get_ca(mocker: MockerFixture):
return_value=ca_object,
)
mocker.patch(
"confidant.services.certificate_authority.acm_private_certificate_authority.ACMPrivateCertificateAuthority.get_certificate_authority_certificate", # noqa: E501
"confidant.services.certificate_authority.acmpca.ACMPrivateCertificateAuthority.get_certificate_authority_certificate", # noqa: E501
return_value={
"ca": "development",
"certificate": "test_certificate",
Expand Down

0 comments on commit 0ec0d11

Please sign in to comment.