mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
test: update testing
This commit is contained in:
parent
bcbb88d802
commit
b341b788a5
1 changed files with 5 additions and 4 deletions
|
|
@ -5,7 +5,7 @@
|
|||
import os
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import json
|
||||
import pytest
|
||||
|
||||
sys.path.insert(
|
||||
|
|
@ -465,7 +465,8 @@ def test_sagemaker_default_region():
|
|||
)
|
||||
mock_post.assert_called_once()
|
||||
_, kwargs = mock_post.call_args
|
||||
args_to_sagemaker = kwargs["json"]
|
||||
print(f"kwargs: {kwargs}")
|
||||
args_to_sagemaker = json.loads(kwargs["data"])
|
||||
print("Arguments passed to sagemaker=", args_to_sagemaker)
|
||||
print("url=", kwargs["url"])
|
||||
|
||||
|
|
@ -517,7 +518,7 @@ def test_sagemaker_environment_region():
|
|||
)
|
||||
mock_post.assert_called_once()
|
||||
_, kwargs = mock_post.call_args
|
||||
args_to_sagemaker = kwargs["json"]
|
||||
args_to_sagemaker = json.loads(kwargs["data"])
|
||||
print("Arguments passed to sagemaker=", args_to_sagemaker)
|
||||
print("url=", kwargs["url"])
|
||||
|
||||
|
|
@ -574,7 +575,7 @@ def test_sagemaker_config_region():
|
|||
|
||||
mock_post.assert_called_once()
|
||||
_, kwargs = mock_post.call_args
|
||||
args_to_sagemaker = kwargs["json"]
|
||||
args_to_sagemaker = json.loads(kwargs["data"])
|
||||
print("Arguments passed to sagemaker=", args_to_sagemaker)
|
||||
print("url=", kwargs["url"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue