MCPcopy
hub / github.com/langroid/langroid / test_update_global_settings

Function test_update_global_settings

tests/main/test_global_settings.py:16–24  ·  view source on GitHub ↗

Test that we can dynamically update the global settings object.

()

Source from the content-addressed store, hash-verified

14
15
16def test_update_global_settings():
17 """
18 Test that we can dynamically update the global settings object.
19 """
20 set_global(Settings(debug=True))
21 assert settings.debug is True
22
23 set_global(Settings(debug=False))
24 assert settings.debug is False
25
26
27# Shared list to collect exceptions

Callers

nothing calls this directly

Calls 2

set_globalFunction · 0.90
SettingsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…