Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against quetz-server version 0.10.2 #42

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
9 changes: 1 addition & 8 deletions .quetz-server-versions
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
0.6.1
0.6.2
0.6.3
0.7.0
0.8.0
0.9.0
0.9.1
0.9.2
0.10.2
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ dependencies:
- fire
- requests
- dacite
- pydantic<2
- pip:
- git+https://github.com/jupyter-server/jupyter_releaser.git@v2
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("bob", role)
actual_alice_role = live_client.get_role("bob")
assert next(actual_alice_role).role == role
janjagusch marked this conversation as resolved.
Show resolved Hide resolved


def test_live_post_file_to_channel(
live_client: QuetzClient,
live_post_channel_a,
Expand Down
Loading