(tempdir_factory)
| 120 | |
| 121 | @pytest.fixture |
| 122 | def aliased_repo(tempdir_factory): |
| 123 | git_path = make_consuming_repo(tempdir_factory, 'script_hooks_repo') |
| 124 | with cwd(git_path): |
| 125 | with modify_config() as config: |
| 126 | config['repos'][0]['hooks'].append( |
| 127 | {'id': 'bash_hook', 'alias': 'foo_bash'}, |
| 128 | ) |
| 129 | stage_a_file() |
| 130 | yield git_path |
| 131 | |
| 132 | |
| 133 | def stage_a_file(filename='foo.py'): |
nothing calls this directly
no test coverage detected