Skip to content

Commit 7c307c9

Browse files
author
Andrei Neagu
committed
using None serialization
1 parent 8d94821 commit 7c307c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/director-v2/src/simcore_service_director_v2/modules/osparc_variables/substitutions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async def resolve_and_substitute_session_variables_in_specs(
253253
project_id=project_id,
254254
node_id=node_id,
255255
run_id=service_run_id,
256-
wallet_id="" if wallet_id is None else wallet_id,
256+
wallet_id=wallet_id,
257257
api_server_base_url=app_settings.DIRECTOR_V2_PUBLIC_API_BASE_URL,
258258
),
259259
)

services/director-v2/tests/unit/test_modules_osparc_variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ async def test_resolve_and_substitute_session_variables_in_specs(
195195
print("REPLACED SPECS\n", replaced_specs)
196196

197197
assert OSPARC_IDENTIFIER_PREFIX not in f"{replaced_specs}"
198-
assert f"{'' if wallet_id is None else wallet_id}" in f"{replaced_specs}"
198+
assert f"'wallet_id': '{wallet_id}'" in f"{replaced_specs}"
199199

200200

201201
@pytest.fixture

0 commit comments

Comments
 (0)