MCPcopy Create free account
hub / github.com/chatmail/core / test_liveconfig_caching

Function test_liveconfig_caching

python/tests/test_4_lowlevel.py:82–91  ·  view source on GitHub ↗
(acfactory, monkeypatch)

Source from the content-addressed store, hash-verified

80
81
82def test_liveconfig_caching(acfactory, monkeypatch):
83 prod = [
84 {"addr": "1@example.org", "mail_pw": "123"},
85 ]
86 acfactory._liveconfig_producer = iter(prod)
87 d1 = acfactory.get_next_liveconfig()
88 d1["hello"] = "world"
89 acfactory._liveconfig_producer = iter(prod)
90 d2 = acfactory.get_next_liveconfig()
91 assert "hello" not in d2
92
93
94def test_empty_context():

Callers

nothing calls this directly

Calls 1

get_next_liveconfigMethod · 0.80

Tested by

no test coverage detected