1
0
mirror of https://github.com/httpie/cli.git synced 2025-08-10 22:42:05 +02:00

Add --verify true/false tests and CHANGELOG

This commit is contained in:
Jakub Roztocil
2017-02-17 00:56:07 +01:00
parent cf8d5eb3e8
commit 7321b9fa4e
4 changed files with 12 additions and 5 deletions

View File

@@ -73,6 +73,11 @@ class TestServerCert:
r = http(httpbin_secure.url + '/get', '--verify=no')
assert HTTP_OK in r
@pytest.mark.parametrize('verify_value', ['false', 'fALse'])
def test_verify_false_OK(self, httpbin_secure, verify_value):
r = http(httpbin_secure.url + '/get', '--verify', verify_value)
assert HTTP_OK in r
def test_verify_custom_ca_bundle_path(
self, httpbin_secure_untrusted):
r = http(httpbin_secure_untrusted + '/get', '--verify', CA_BUNDLE)