Skip to content

Commit 3c76a4d

Browse files
authored
fix: TLS CA bundle not found error in tests (#615)
- Adds certificate to the `pyfakefs` FS
1 parent dccdc00 commit 3c76a4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ def test_tldextract_http_toggle(
220220
):
221221
import socket
222222

223+
import certifi
224+
225+
fs.add_real_file(certifi.where())
226+
223227
# Disable sockets, will raise errors on HTTP calls
224228
socket_patch = patch.object(socket, "socket", side_effect=RuntimeError)
225229
environ_patch = patch.dict(

0 commit comments

Comments
 (0)