(in_git_dir)
| 447 | |
| 448 | |
| 449 | def test_autoupdate_local_hooks(in_git_dir): |
| 450 | config = sample_local_config() |
| 451 | add_config_to_repo('.', config) |
| 452 | assert autoupdate(C.CONFIG_FILE, freeze=False, tags_only=False) == 0 |
| 453 | new_config_written = read_config('.') |
| 454 | assert len(new_config_written['repos']) == 1 |
| 455 | assert new_config_written['repos'][0] == config |
| 456 | |
| 457 | |
| 458 | def test_autoupdate_local_hooks_with_out_of_date_repo( |
nothing calls this directly
no test coverage detected