Skip to content

Commit

Permalink
WIP tests/actions/test_sync_gws_mailing_lists.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrik committed May 21, 2024
1 parent 3f94a06 commit 1b55c60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/actions/test_sync_gws_mailing_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def test_sync_gws_mailing_lists_delete(keycloak_bootstrap): # noqa: F811
{'email': '[email protected]', 'role': 'MEMBER'},
{'email': '[email protected]', 'role': 'MEMBER'},
{'email': 'owner-dont-delete@test', 'role': 'OWNER'},
{'email': 'keep.subadin@icecube.wisc.edu', 'role': 'MANAGER'},
{'email': 'keep.subadmin@icecube.wisc.edu', 'role': 'MANAGER'},
{'email': 'remove@test', 'role': 'MEMBER'},
]})
gws_members_client = MagicMock()
Expand Down Expand Up @@ -119,8 +119,8 @@ async def test_sync_gws_mailing_lists_delete(keycloak_bootstrap): # noqa: F811
sorted(map(repr, [
call(groupKey='test@gws', memberKey='remove@test'),
])))
assert gws_members_client.insert.call_count == 0
assert gws_members_client.patch.call_count == 0
assert gws_members_client.insert.call_args_list == []
assert gws_members_client.patch.call_args_list == []


@pytest.mark.asyncio
Expand Down

0 comments on commit 1b55c60

Please sign in to comment.