Private
Public Access
fix(controller): remove 'persona_manager' from _LAZY_MANAGER_DEFAULTS
This commit is contained in:
@@ -1261,12 +1261,12 @@ class AppController:
|
|||||||
# Manager attributes that are initialized by init_state() but are absent
|
# Manager attributes that are initialized by init_state() but are absent
|
||||||
# on a bare AppController() (which some tests construct). Return None
|
# on a bare AppController() (which some tests construct). Return None
|
||||||
# for these so test code that references them without calling init_state
|
# for these so test code that references them without calling init_state
|
||||||
# does not crash. hasattr() still returns False for non-mocked access
|
# does not crash. NOTE: callers that need to distinguish "lazy" from
|
||||||
# paths because callers wrap in try/except for AttributeError when they
|
# "absent" must use try/except AttributeError explicitly; hasattr()
|
||||||
# need to distinguish "lazy" from "absent".
|
# returns True because __getattr__ returns None (a valid attribute
|
||||||
|
# value).
|
||||||
_LAZY_MANAGER_DEFAULTS = {
|
_LAZY_MANAGER_DEFAULTS = {
|
||||||
"context_preset_manager",
|
"context_preset_manager",
|
||||||
"persona_manager",
|
|
||||||
"tool_preset_manager",
|
"tool_preset_manager",
|
||||||
"preset_manager",
|
"preset_manager",
|
||||||
"vendor_state",
|
"vendor_state",
|
||||||
|
|||||||
Reference in New Issue
Block a user