Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
task/189 fix expected statement in test
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvanich9 committed Nov 24, 2023
1 parent 706894c commit 7704295
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/projects/database/test_projects_database_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ async def test_get_project_positions(database_service: ProjectsDatabaseService):
expected_positions = [
Position(id=uuid.uuid4(), specialization_id=specialization_id, project_id=project_id)
]
expected_query = select(Position).where(Position.project_id == project_id).order_by(Position.created_at.desc()).offset(0).limit(10)
expected_query = (
select(Position)
.where(Position.project_id == project_id).
order_by(Position.created_at.desc())
.offset(0)
.limit(10)
)
result.unique().scalars.return_value.all.return_value = expected_positions
session.execute = AsyncMock()
session.execute.return_value = result
Expand Down

0 comments on commit 7704295

Please sign in to comment.