fix: Replace the global DEFAULT_USER_PERSONA_REGISTRY with a function call to get_default_persona_registry

PiperOrigin-RevId: 871422993
This commit is contained in:
Google Team Member
2026-02-17 11:45:24 -08:00
committed by Copybara-Service
parent e1e0d63616
commit 2703613572
3 changed files with 5 additions and 8 deletions
@@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from google.adk.evaluation.simulation import pre_built_personas
from google.adk.evaluation.simulation.pre_built_personas import get_default_persona_registry
def test_get_default_persona_registry():
"""Tests that the default persona registry can be loaded."""
assert pre_built_personas.DEFAULT_USER_PERSONA_REGISTRY is not None
assert get_default_persona_registry() is not None