| Conditions | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 52 | def test_run_script_cwd(hook_shell_script): |
||
| 53 | """Change directory before running hook""" |
||
| 54 | hooks.run_script( |
||
| 55 | hook_shell_script, |
||
| 56 | 'tests' |
||
| 57 | ) |
||
| 58 | assert os.path.isfile('tests/shell_post.txt') |
||
| 59 | assert 'tests' not in os.getcwd() |
||
| 60 | |||
| 61 | os.remove('tests/shell_post.txt') |
||
| 62 |