mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
(test) fix incorrect test lol
This commit is contained in:
parent
2fdd41ac1e
commit
5bd10e303a
1 changed files with 1 additions and 1 deletions
|
@ -1384,10 +1384,10 @@ def test_completion_sagemaker():
|
||||||
# Add any assertions here to check the response
|
# Add any assertions here to check the response
|
||||||
print(response)
|
print(response)
|
||||||
cost = completion_cost(completion_response=response)
|
cost = completion_cost(completion_response=response)
|
||||||
|
print("calculated cost", cost)
|
||||||
assert (
|
assert (
|
||||||
cost > 0.0 and cost < 1.0
|
cost > 0.0 and cost < 1.0
|
||||||
) # should never be > $1 for a single completion call
|
) # should never be > $1 for a single completion call
|
||||||
raise Exception("it worked!")
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
pytest.fail(f"Error occurred: {e}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue