mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-05 02:23:42 +00:00
Merge pull request #21939 from jquinter/fix/model-prices-test-relative-path
fix(tests): use absolute path for model_prices JSON validation test
This commit is contained in:
@@ -808,8 +808,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
|
||||
},
|
||||
}
|
||||
|
||||
prod_json = "litellm/model_prices_and_context_window.json"
|
||||
# prod_json = "../../model_prices_and_context_window.json"
|
||||
prod_json = os.path.join(os.path.dirname(__file__), "..", "..", "model_prices_and_context_window.json")
|
||||
with open(prod_json, "r") as model_prices_file:
|
||||
actual_json = json.load(model_prices_file)
|
||||
assert isinstance(actual_json, dict)
|
||||
|
||||
Reference in New Issue
Block a user