mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test(e2e): check cleanup warnings through one teardown action
This commit is contained in:
parent
9a80bf2ad4
commit
f7b1fdc39c
1 changed files with 4 additions and 2 deletions
|
|
@ -136,9 +136,11 @@ def test_cleanup_failure_is_visible() -> None:
|
|||
|
||||
def test_expired_admin_credentials_do_not_abort_remaining_cleanups() -> None:
|
||||
with _idp_server(admin_status=401) as (idp, _):
|
||||
cleanup: Final = ExitStack()
|
||||
cleanup.callback(idp.delete_group, "group")
|
||||
cleanup.callback(idp.delete_user, "user")
|
||||
with pytest.warns(RuntimeWarning, match="cleanup could not authenticate") as warnings:
|
||||
idp.delete_user("user")
|
||||
idp.delete_group("group")
|
||||
cleanup.close()
|
||||
assert len(warnings) == 2
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue