Skip to content

Commit 20ec910

Browse files
fix mock
1 parent 40699c0 commit 20ec910

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

services/web/server/tests/unit/with_dbs/02/test_projects_states_handlers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ async def test_open_project(
360360
mock_orphaned_services: mock.Mock,
361361
mock_catalog_api: dict[str, mock.Mock],
362362
osparc_product_name: str,
363+
osparc_product_api_base_url: str,
363364
mocked_notifications_plugin: dict[str, mock.Mock],
364365
):
365366
# POST /v0/projects/{project_id}:open
@@ -399,6 +400,7 @@ async def test_open_project(
399400
request_dns=request_dns,
400401
can_save=save_state,
401402
product_name=osparc_product_name,
403+
product_api_base_url=osparc_product_api_base_url,
402404
service_resources=ServiceResourcesDictHelpers.create_jsonable(
403405
mock_service_resources
404406
),
@@ -499,6 +501,7 @@ async def test_open_template_project_for_edition(
499501
mock_orphaned_services: mock.Mock,
500502
mock_catalog_api: dict[str, mock.Mock],
501503
osparc_product_name: str,
504+
osparc_product_api_base_url: str,
502505
mocked_notifications_plugin: dict[str, mock.Mock],
503506
):
504507
# POST /v0/projects/{project_id}:open
@@ -544,6 +547,7 @@ async def test_open_template_project_for_edition(
544547
mock_service_resources
545548
),
546549
product_name=osparc_product_name,
550+
product_api_base_url=osparc_product_api_base_url,
547551
wallet_info=None,
548552
pricing_info=None,
549553
hardware_info=None,

services/web/server/tests/unit/with_dbs/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ def osparc_product_name() -> str:
258258
return "osparc"
259259

260260

261+
@pytest.fixture(scope="session")
262+
def osparc_product_api_base_url() -> str:
263+
return "http://127.0.0.1/"
264+
265+
261266
@pytest.fixture
262267
async def default_product_name(client: TestClient) -> ProductName:
263268
assert client.app

0 commit comments

Comments
 (0)