(store, caplog)
| 199 | |
| 200 | |
| 201 | def test_unknown_keys(store, caplog): |
| 202 | config = { |
| 203 | 'repo': 'local', |
| 204 | 'hooks': [{ |
| 205 | 'id': 'too-much', |
| 206 | 'name': 'too much', |
| 207 | 'hello': 'world', |
| 208 | 'foo': 'bar', |
| 209 | 'language': 'system', |
| 210 | 'entry': 'true', |
| 211 | }], |
| 212 | } |
| 213 | _get_hook(config, store, 'too-much') |
| 214 | msg, = caplog.messages |
| 215 | assert msg == 'Unexpected key(s) present on local => too-much: foo, hello' |
| 216 | |
| 217 | |
| 218 | def test_reinstall(tempdir_factory, store, caplog): |
nothing calls this directly
no test coverage detected