mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
refactor(test_users.py): refactor test for user info to use mock endpoints
This commit is contained in:
parent
3a1e2568db
commit
dd10896f32
3 changed files with 47 additions and 9 deletions
|
@ -99,13 +99,6 @@ async def test_user_info():
|
|||
)
|
||||
assert status == 403
|
||||
|
||||
## check if returned teams as admin == all teams ##
|
||||
admin_info = await get_user_info(
|
||||
session=session, get_user="", call_user="sk-1234", view_all=True
|
||||
)
|
||||
all_teams = await list_teams(session=session, i=0)
|
||||
assert len(admin_info["teams"]) == len(all_teams)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_user_update():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue