Skip to content

Commit 4c2b583

Browse files
committed
cleanup
1 parent fd5b928 commit 4c2b583

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/postgres-database/tests/test_models_projects_to_jobs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def test_populate_projects_to_jobs_during_migration(
6868
user_data = random_user(
6969
faker, name="test_populate_projects_to_jobs_during_migration"
7070
)
71-
user_id = conn.execute(
72-
sa.insert(users).values(user_data).returning(users.c.id)
73-
).scalar()
71+
stmt = sa.insert(users).values(**user_data).returning(users.c.id)
72+
result = conn.execute(stmt)
73+
user_id = result.scalar()
7474

7575
SPACES = " " * 3
7676
projects_data = [

0 commit comments

Comments
 (0)