We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf6b4e3 commit 9ed67c0Copy full SHA for 9ed67c0
conftest.py
@@ -0,0 +1,9 @@
1
+# contents of test_app.py, a simple test for our API retrieval
2
+import pytest
3
+import requests
4
+
5
6
+# Prevent `requests` from making any inadvertent API calls in tests
7
+@pytest.fixture(autouse=True)
8
+def no_requests(monkeypatch):
9
+ monkeypatch.delattr("requests.sessions.Session.request")
0 commit comments