Skip to content

Commit

Permalink
Add test_live_set_role.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjagusch committed Sep 28, 2023
1 parent b20abb4 commit 07da30d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ def test_live_get_role(
assert next(actual_alice_role).role == live_alice_role


@pytest.mark.parametrize(
"role",
[
None,
"member",
"maintainer",
"owner",
],
)
def test_live_set_role(
live_client: QuetzClient,
role,
):
live_client.set_role("alice", role)
actual_alice_role = live_client.get_role("alice")
assert next(actual_alice_role).role == role


def test_live_post_file_to_channel(
live_client: QuetzClient,
live_post_channel_a,
Expand Down

0 comments on commit 07da30d

Please sign in to comment.