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:
Aman Sachan 2026-05-16 00:45:01 +00:00
parent 6442bfdf64
commit 77d712d138
No known key found for this signature in database
GPG key ID: D50A9E263569B417

View file

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