forked from phoenix/litellm-mirror
add error message on test
This commit is contained in:
parent
49ebf4d0de
commit
45953b9924
2 changed files with 1 additions and 12 deletions
|
@ -118,18 +118,6 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
|
||||||
name: Check if litellm dir was updated or if pyproject.toml was modified
|
|
||||||
command: |
|
|
||||||
if [ -n "$(git diff --name-only $CIRCLE_SHA1^..$CIRCLE_SHA1 | grep -E 'pyproject\.toml|litellm/')" ]; then
|
|
||||||
echo "litellm updated"
|
|
||||||
else
|
|
||||||
echo "No changes to litellm or pyproject.toml. Skipping tests."
|
|
||||||
circleci step halt
|
|
||||||
fi
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-dependencies-{{ checksum ".circleci/requirements.txt" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: |
|
command: |
|
||||||
|
|
|
@ -537,6 +537,7 @@ def test_call_with_user_over_budget(prisma_client):
|
||||||
|
|
||||||
asyncio.run(test())
|
asyncio.run(test())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
print("got an errror=", e)
|
||||||
error_detail = e.message
|
error_detail = e.message
|
||||||
assert "ExceededBudget:" in error_detail
|
assert "ExceededBudget:" in error_detail
|
||||||
assert isinstance(e, ProxyException)
|
assert isinstance(e, ProxyException)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue