Skip to content

Commit 8a62f00

Browse files
committed
Update test_cli.py
Removed importing requests because it was unnecessary and caused a failure on GitHub testing.
1 parent 36b0b4c commit 8a62f00

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/test_cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import time
88
import pathlib
99
import subprocess
10-
import requests
1110

1211
from fixtures import teardown_module
1312

@@ -38,7 +37,6 @@ def teardown_module_cwd():
3837
def disable_network_calls(monkeypatch):
3938
def stunted_get():
4039
raise RuntimeError("Network access not allowed during testing!")
41-
monkeypatch.setattr(requests, "get", lambda *args, **kwargs: stunted_get())
4240
monkeypatch.setattr("urllib.request.urlopen", lambda *args, **kwargs: stunted_get())
4341
monkeypatch.setattr("urllib.parse.urlparse", lambda *args, **kwargs: stunted_get())
4442
monkeypatch.setattr("mwtab.fileio.urlopen", lambda *args, **kwargs: stunted_get())

0 commit comments

Comments
 (0)