MCPcopy Index your code
hub / github.com/pimutils/vdirsyncer / test_storage_instance_from_config

Function test_storage_instance_from_config

tests/system/cli/test_utils.py:17–24  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

15
16
17def test_storage_instance_from_config(monkeypatch):
18 def lol(**kw):
19 assert kw == {'foo': 'bar', 'baz': 1}
20 return 'OK'
21
22 monkeypatch.setitem(storage_names._storages, 'lol', lol)
23 config = {'type': 'lol', 'foo': 'bar', 'baz': 1}
24 assert storage_instance_from_config(config) == 'OK'

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected