mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
correct magic plan url paths 🟩
This commit is contained in:
parent
beaf21fdcc
commit
8727a78f8b
1 changed files with 3 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ def test_get_plans_calls_correct_url(
|
||||||
# Act
|
# Act
|
||||||
client.get_plans()
|
client.get_plans()
|
||||||
# Assert
|
# Assert
|
||||||
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans")
|
mock_session.get.assert_called_once_with(f"{BASE_URL}/workgroups/plans")
|
||||||
|
|
||||||
|
|
||||||
def test_get_plans_calls_raise_for_status(
|
def test_get_plans_calls_raise_for_status(
|
||||||
|
|
@ -132,7 +132,7 @@ def test_get_plan_calls_correct_url(
|
||||||
# Act
|
# Act
|
||||||
client.get_plan(plan_id)
|
client.get_plan(plan_id)
|
||||||
# Assert
|
# Assert
|
||||||
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/{plan_id}")
|
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/get/{plan_id}")
|
||||||
|
|
||||||
|
|
||||||
def test_get_plan_calls_raise_for_status(
|
def test_get_plan_calls_raise_for_status(
|
||||||
|
|
@ -202,7 +202,7 @@ def test_get_plan_raw_calls_correct_url(
|
||||||
# Act
|
# Act
|
||||||
client.get_plan_raw(plan_id)
|
client.get_plan_raw(plan_id)
|
||||||
# Assert
|
# Assert
|
||||||
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/{plan_id}")
|
mock_session.get.assert_called_once_with(f"{BASE_URL}/plans/get/{plan_id}")
|
||||||
|
|
||||||
|
|
||||||
def test_get_plan_raw_calls_raise_for_status(
|
def test_get_plan_raw_calls_raise_for_status(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue