(self, httpbin_secure)
| 976 | ) |
| 977 | |
| 978 | def test_invalid_ssl_certificate_files(self, httpbin_secure): |
| 979 | INVALID_PATH = "/garbage" |
| 980 | with pytest.raises(IOError) as e: |
| 981 | requests.get(httpbin_secure(), cert=INVALID_PATH) |
| 982 | assert ( |
| 983 | str(e.value) |
| 984 | == f"Could not find the TLS certificate file, invalid path: {INVALID_PATH}" |
| 985 | ) |
| 986 | |
| 987 | with pytest.raises(IOError) as e: |
| 988 | requests.get(httpbin_secure(), cert=(".", INVALID_PATH)) |
| 989 | assert str(e.value) == ( |
| 990 | f"Could not find the TLS key file, invalid path: {INVALID_PATH}" |
| 991 | ) |
| 992 | |
| 993 | @pytest.mark.parametrize( |
| 994 | "env, expected", |
nothing calls this directly
no test coverage detected