Skip to content

Commit e8a5300

Browse files
review @sanderegg
1 parent dea70a6 commit e8a5300

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/postgres-database/tests/test_utils_projects.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import sqlalchemy
1212
from aiopg.sa.connection import SAConnection
1313
from aiopg.sa.result import RowProxy
14+
from faker import Faker
1415
from simcore_postgres_database.models.projects import projects
1516
from simcore_postgres_database.utils_projects import (
1617
DBProjectNotFoundError,
@@ -51,10 +52,8 @@ async def registered_project(
5152

5253

5354
async def test_get_project_last_change_date(
54-
asyncpg_engine: AsyncEngine,
55-
registered_project: dict,
55+
asyncpg_engine: AsyncEngine, registered_project: dict, faker: Faker
5656
):
57-
# conn = connection
5857
projects_repo = ProjectsRepo(asyncpg_engine)
5958

6059
project_last_change_date = await projects_repo.get_project_last_change_date(
@@ -64,5 +63,5 @@ async def test_get_project_last_change_date(
6463

6564
with pytest.raises(DBProjectNotFoundError):
6665
await projects_repo.get_project_last_change_date(
67-
project_uuid="976b031b-828e-4d88-836a-6c2fe4823c6b" # <-- Non existing uuid in DB
66+
project_uuid=faker.uuid4() # <-- Non existing uuid in DB
6867
)

0 commit comments

Comments
 (0)