#4830·jupyterhub

test_share_codes_api_revoke 存在不稳定性

作者: minrk创建于 2024年5月31日更新于 2025年12月14日
标签bug

@pytest.mark.parametrize( "have_scopes, delete_by, status", [ (None, None, 204), ("shares", "id=ID", 204), ( "shares!server=SERVER", "code=CODE", 204, ), ("shares!user=other", None, 404), ("read:shares", "code=CODE", 403), ("shares", "id=invalid", 404), ("shares", "id=sc_9999", 404), ("shares", "code=nomatch", 404), ], ) async def test_share_codes_api_revoke( app, user, group, share_user, create_user_with_scopes, have_scopes, delete_by, status, ): db = app.db spawner = user.spawner.orm_spawner

内容来源: jupyterhub/jupyterhub