Skip to content

Commit afe10c6

Browse files
fix: use common lib
1 parent c1e65e0 commit afe10c6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

services/web/server/tests/unit/with_dbs/04/functions/test_functions_controller_rest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
# pylint: disable=unused-variable
44
# pylint: disable=too-many-arguments
55

6-
7-
import json
86
from collections.abc import AsyncIterator
97
from http import HTTPStatus
108
from typing import Any
119
from uuid import uuid4
1210

1311
import pytest
1412
from aiohttp.test_utils import TestClient
13+
from common_library.json_serialization import json_dumps
1514
from models_library.api_schemas_webserver.functions import (
1615
FunctionClass,
1716
JSONFunctionInputSchema,
@@ -143,7 +142,7 @@ async def test_function_workflow(
143142
url = client.app.router["list_functions"].url_for()
144143
response = await client.get(
145144
url,
146-
params={"order_by": json.dumps({"field": "created_at", "direction": "asc"})},
145+
params={"order_by": json_dumps({"field": "created_at", "direction": "asc"})},
147146
)
148147
data, error = await assert_status(response, expected_list)
149148
if not error:
@@ -179,7 +178,7 @@ async def test_function_workflow(
179178
# List existing functions (searching by title)
180179
url = client.app.router["list_functions"].url_for()
181180
response = await client.get(
182-
url, params={"filters": json.dumps({"search_by_title": "duplicate"})}
181+
url, params={"filters": json_dumps({"search_by_title": "duplicate"})}
183182
)
184183
data, error = await assert_status(response, expected_list)
185184
if not error:

0 commit comments

Comments
 (0)