add error message on test

This commit is contained in:
Ishaan Jaff 2024-09-05 15:46:13 -07:00
parent 30137b0b72
commit edc51f45ac
2 changed files with 1 additions and 12 deletions

View file

@ -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: |

View file

@ -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)