Skip to content

Commit 0f9d431

Browse files
committed
adapts tests
1 parent 566452d commit 0f9d431

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

services/clusters-keeper/tests/unit/test_utils_clusters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def test_create_deploy_cluster_stack_script(
181181
"WORKERS_EC2_INSTANCES_CUSTOM_TAGS",
182182
]
183183
assert all(
184-
re.search(rf"{i}=\'{{(\".+\":\s\".*\")+}}\'", deploy_script)
184+
re.search(rf"{i}=\'{{(\".+\":\s*\".*\")+}}\'", deploy_script)
185185
for i in dict_settings
186186
)
187187

services/dask-sidecar/tests/unit/test_tasks.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import distributed
2121
import fsspec
2222
import pytest
23+
from common_library.json_serialization import json_dumps
2324
from dask_task_models_library.container_tasks.docker import DockerBasicAuth
2425
from dask_task_models_library.container_tasks.errors import ServiceRuntimeError
2526
from dask_task_models_library.container_tasks.events import (
@@ -363,7 +364,14 @@ def sleeper_task(
363364
log_file_url=log_file_url,
364365
expected_output_data=expected_output_data,
365366
expected_logs=[
366-
'{"input_1": 23, "input_23": "a string input", "the_input_43": 15.0, "the_bool_input_54": false}',
367+
json_dumps(
368+
{
369+
"input_1": 23,
370+
"input_23": "a string input",
371+
"the_input_43": 15.0,
372+
"the_bool_input_54": False,
373+
}
374+
),
367375
"This is the file contents of file #'001'",
368376
"This is the file contents of file #'002'",
369377
"This is the file contents of file #'003'",

0 commit comments

Comments
 (0)