From deeb0f130832c4bf59baa1cc47fd03d442d5f2c0 Mon Sep 17 00:00:00 2001 From: matusdrobuliak66 Date: Wed, 4 Dec 2024 16:13:29 +0100 Subject: [PATCH] fix test --- .../web/server/tests/unit/with_dbs/04/licenses/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/server/tests/unit/with_dbs/04/licenses/conftest.py b/services/web/server/tests/unit/with_dbs/04/licenses/conftest.py index 9352c782d88..b16538764d4 100644 --- a/services/web/server/tests/unit/with_dbs/04/licenses/conftest.py +++ b/services/web/server/tests/unit/with_dbs/04/licenses/conftest.py @@ -5,6 +5,7 @@ # pylint:disable=redefined-outer-name import pytest from aiohttp.test_utils import TestClient +from simcore_postgres_database.models.license_goods import license_goods from simcore_postgres_database.models.resource_tracker_pricing_plans import ( resource_tracker_pricing_plans, ) @@ -39,4 +40,5 @@ async def pricing_plan_id( yield int(row[0]) async with transaction_context(get_asyncpg_engine(client.app)) as conn: - result = await conn.execute(resource_tracker_pricing_plans.delete()) + await conn.execute(license_goods.delete()) + await conn.execute(resource_tracker_pricing_plans.delete())