reason="requires OpenSSL 1.1.1 or higher",
)
@pytest.mark.skipif(sys.version_info < (3, 8), reason="requires python3.8 or higher")
-def test_ssl_config_support_for_keylog_file(tmpdir, monkeypatch):
+def test_ssl_config_support_for_keylog_file(tmpdir, monkeypatch): # pragma: nocover
with monkeypatch.context() as m:
m.delenv("SSLKEYLOGFILE", raising=False)
@pytest.mark.parametrize(
"file_name,expected_content_type",
- [("example.json", "application/json"), ("example.log", "application/octet-stream")],
+ [
+ ("example.json", "application/json"),
+ ("example.txt", "text/plain"),
+ ("no-extension", "application/octet-stream"),
+ ],
)
def test_multipart_encode_files_guesses_correct_content_type(
file_name, expected_content_type