File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/postgres-database/tests Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1111import sqlalchemy
1212from aiopg .sa .connection import SAConnection
1313from aiopg .sa .result import RowProxy
14+ from faker import Faker
1415from simcore_postgres_database .models .projects import projects
1516from simcore_postgres_database .utils_projects import (
1617 DBProjectNotFoundError ,
@@ -51,10 +52,8 @@ async def registered_project(
5152
5253
5354async 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 )
You can’t perform that action at this time.
0 commit comments