Skip to content

Commit

Permalink
test(boto): add test for get_cert_path returning .pem file path
Browse files Browse the repository at this point in the history
  • Loading branch information
spawn-guy committed Oct 14, 2024
1 parent 6d62a97 commit 91ac2af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/unit/asynchronous/aws/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ def assert_request_created_with(self, url, conn):
validate_cert=VALIDATES_CERT,
)

def test_request_with_cert_path_https(self):
x = AsyncHTTPSConnection("https://example.com")
request = x.getrequest()
assert request.validate_cert is True
assert request.ca_certs is not None
assert request.ca_certs.endswith('.pem')

def test_getresponse(self):
client = Mock(name='client')
client.add_request = passthrough(name='client.add_request')
Expand Down

0 comments on commit 91ac2af

Please sign in to comment.