mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
_fetch_plan() sends no API key query parameter 🟥
This commit is contained in:
parent
20b32bcda0
commit
7752039dbd
1 changed files with 2 additions and 6 deletions
|
|
@ -132,9 +132,7 @@ def test_get_plan_calls_correct_url(
|
|||
# Act
|
||||
client.get_plan(plan_id)
|
||||
# Assert
|
||||
mock_session.get.assert_called_once_with(
|
||||
f"{BASE_URL}/plans/{plan_id}", params={"key": API_KEY}
|
||||
)
|
||||
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/{plan_id}")
|
||||
|
||||
|
||||
def test_get_plan_calls_raise_for_status(
|
||||
|
|
@ -204,9 +202,7 @@ def test_get_plan_raw_calls_correct_url(
|
|||
# Act
|
||||
client.get_plan_raw(plan_id)
|
||||
# Assert
|
||||
mock_session.get.assert_called_once_with(
|
||||
f"{BASE_URL}/plans/{plan_id}", params={"key": API_KEY}
|
||||
)
|
||||
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/{plan_id}")
|
||||
|
||||
|
||||
def test_get_plan_raw_calls_raise_for_status(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue