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

Commit

Permalink
task/182 tests_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YehorI committed Nov 23, 2023
1 parent f4292e3 commit 8d0fd02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions autotests/rest/projects/test_participants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
pytest.lazy_fixture("oleg_activated_participants_rest_client"),
pytest.lazy_fixture("matvey_participants_rest_client"),
pytest.lazy_fixture("matvey_activated_participants_rest_client"),
pytest.lazy_fixture("participants_rest_client"),
pytest.lazy_fixture("random_participants_rest_client"),
pytest.lazy_fixture("projects_rest_client"),
pytest.lazy_fixture("random_projects_rest_client"),
))
@pytest.mark.parametrize(
(
Expand Down
4 changes: 2 additions & 2 deletions tests/projects/database/test_projects_database_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async def test_get_participants_with_all_filters(
project = MagicMock()
position_id = MagicMock()
user_id = uuid.uuid4()
expected_participants = [Participant(position_id=position.id, user_id=user_id)]
expected_participants = [Participant(position_id=position_id, user_id=user_id)]
mock_participant = MagicMock()
mock_participant.unique.return_value.scalars.return_value.all.return_value = (
expected_participants
Expand All @@ -324,7 +324,7 @@ async def test_get_participants_with_all_filters(
expected_query = (
select(Participant)
.where(
Participant.position_id == position.id,
Participant.position_id == position_id,
Participant.user_id == user_id,
Participant.position_id.in_(
select(Position.id).where(Position.project_id == project.id)
Expand Down

0 comments on commit 8d0fd02

Please sign in to comment.