Skip to content

Commit fa1fd7a

Browse files
committed
removing local helpers/fixtures
1 parent 463b136 commit fa1fd7a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

packages/pytest-simcore/src/pytest_simcore/helpers/storage_utils.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import logging
22
import os
3-
from typing import Any
3+
from pathlib import Path
4+
from typing import Any, TypedDict
45

56
import sqlalchemy as sa
7+
from models_library.basic_types import SHA256Str
68
from simcore_postgres_database.storage_models import projects
79
from sqlalchemy.ext.asyncio import AsyncEngine
810

@@ -24,6 +26,10 @@ async def get_updated_project(
2426
result = await conn.execute(
2527
sa.select(projects).where(projects.c.uuid == project_id)
2628
)
27-
row = result.fetchone()
28-
assert row
29+
row = result.one()
2930
return row._asdict()
31+
32+
33+
class FileIDDict(TypedDict):
34+
path: Path
35+
sha256_checksum: SHA256Str

0 commit comments

Comments
 (0)