Skip to content

Commit e482324

Browse files
committed
fixes test
1 parent 0674d0c commit e482324

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/web/server/tests/unit/with_dbs/03/tags/test_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async def test_create_tags_with_order_index(
229229
url = client.app.router["create_tag"].url_for()
230230
num_tags = 3
231231
expected_tags: list[Any] = [None] * num_tags
232-
for creation_index, priority_index in enumerate(range(num_tags, 0, -1)):
232+
for creation_index, priority_index in enumerate(range(num_tags - 1, -1, -1)):
233233
resp = await client.post(
234234
f"{url}",
235235
json={
@@ -266,11 +266,11 @@ async def test_create_tags_with_order_index(
266266
# (3) new tag without priority should get last (because is last created)
267267
resp = await client.post(
268268
f"{url}",
269-
json={"name": "New", "description": "w/o priority"},
269+
json={"name": "New", "color": "#f00", "description": "w/o priority"},
270270
)
271271
last_created, _ = await assert_status(resp, status.HTTP_200_OK)
272272

273273
url = client.app.router["list_tags"].url_for()
274274
resp = await client.get(f"{url}")
275275
got, _ = await assert_status(resp, status.HTTP_200_OK)
276-
assert got == [expected_tags[::-1], last_created]
276+
assert got == [*expected_tags[::-1], last_created]

0 commit comments

Comments
 (0)