We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43f6cb commit 8930f09Copy full SHA for 8930f09
test_full.py
@@ -5,7 +5,15 @@
5
6
@pytest.fixture(autouse=True)
7
def setup_api_key():
8
- loopypy.setApiKey("dummy_key")
+ with patch("src.app.requests.get") as mock_get:
9
+ mock_resp = MagicMock()
10
+ mock_resp.json.return_value = {
11
+ "exists": True,
12
+ "success": True
13
+ }
14
+ mock_resp.raise_for_status = lambda: None
15
+ mock_get.return_value = mock_resp
16
+ loopypy.setApiKey("dummy_key")
17
18
def test_check_status_ok():
19
with patch("src.app.requests.get") as mock_get:
0 commit comments