(monkeypatch)
| 15 | |
| 16 | |
| 17 | def 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' |
nothing calls this directly
no test coverage detected