Skip to content

Commit 9842c65

Browse files
committed
fixes tests
1 parent a966dcf commit 9842c65

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

services/web/server/tests/unit/with_dbs/03/test_trash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ async def test_trash_projects( # noqa: PLR0915
133133
could_not_trash = is_project_running and not force
134134

135135
if could_not_trash:
136-
assert error["status"] == status.HTTP_409_CONFLICT
137136
assert "Current study is in use" in error["message"]
138137

139138
# GET

services/web/server/tests/unit/with_dbs/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
import random
1616
import sys
1717
import textwrap
18-
from collections.abc import AsyncIterator, Awaitable, Callable, Iterator
18+
from collections.abc import AsyncIterable, AsyncIterator, Awaitable, Callable, Iterator
1919
from copy import deepcopy
2020
from decimal import Decimal
2121
from pathlib import Path
22-
from typing import Any, AsyncIterable, Final
22+
from typing import Any, Final
2323
from unittest import mock
2424
from unittest.mock import AsyncMock, MagicMock
2525

@@ -853,7 +853,7 @@ async def all_product_prices(
853853

854854
result = {}
855855
for product_name in all_products_names:
856-
usd_or_none = product_price.get(product_name, None)
856+
usd_or_none = product_price.get(product_name)
857857
if usd_or_none is not None:
858858
await _pre_connection.execute(
859859
products_prices.insert().values(

0 commit comments

Comments
 (0)