mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(langfuse): fix TypedDict attribute access in regression test
TypedDict does not support attribute access (config.attr), must use dict-style access (config['key']). Fix the regression test that was failing after the None-guard fix was applied.
This commit is contained in:
parent
6442bfdf64
commit
77d712d138
1 changed files with 3 additions and 3 deletions
|
|
@ -157,6 +157,6 @@ def test_get_dynamic_langfuse_logging_config_handles_none(monkeypatch):
|
|||
|
||||
# Should not raise AttributeError
|
||||
config = LangFuseHandler.get_dynamic_langfuse_logging_config(None)
|
||||
assert config.langfuse_public_key is None
|
||||
assert config.langfuse_secret is None
|
||||
assert config.langfuse_host is None
|
||||
assert config["langfuse_public_key"] is None
|
||||
assert config["langfuse_secret"] is None
|
||||
assert config["langfuse_host"] is None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue