(tempdir_factory, store)
| 303 | |
| 304 | |
| 305 | def test_config_overrides_repo_specifics(tempdir_factory, store): |
| 306 | path = make_repo(tempdir_factory, 'script_hooks_repo') |
| 307 | config = make_config_from_repo(path) |
| 308 | |
| 309 | hook = _get_hook(config, store, 'bash_hook') |
| 310 | assert hook.files == '' |
| 311 | # Set the file regex to something else |
| 312 | config['hooks'][0]['files'] = '\\.sh$' |
| 313 | hook = _get_hook(config, store, 'bash_hook') |
| 314 | assert hook.files == '\\.sh$' |
| 315 | |
| 316 | |
| 317 | def _create_repo_with_tags(tempdir_factory, src, tag): |
nothing calls this directly
no test coverage detected