Skip to content

Commit dfcef2e

Browse files
fix serializer
1 parent 203ab11 commit dfcef2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/director-v2/tests/unit/with_dbs/test_api_route_clusters_details.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def test_local_dask_gateway_server(local_dask_gateway_server: DaskGatewayS
8585

8686
async with cluster.get_client() as client:
8787
print(f"--> created new client {client=}, submitting a job")
88-
res = await client.submit(lambda x: x + 1, 1) # type: ignore
88+
res = await client.submit(lambda x: x + 1, 1)
8989
assert res == 2
9090

9191
print(f"--> scaling cluster {cluster=} back to 0")
@@ -155,7 +155,7 @@ async def test_get_cluster_details(
155155
authentication=SimpleAuthentication(
156156
username=gateway_username,
157157
password=SecretStr(local_dask_gateway_server.password),
158-
).dict(by_alias=True),
158+
).model_dump(mode="json", by_alias=True),
159159
)
160160
# in its present state, the cluster should have no workers
161161
cluster_out = await _get_cluster_details(

0 commit comments

Comments
 (0)