(acfactory, monkeypatch)
| 80 | |
| 81 | |
| 82 | def 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 | |
| 94 | def test_empty_context(): |
nothing calls this directly
no test coverage detected