Conditions | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # -*- coding: utf-8 -*- |
||
41 | def test_run_script_with_context(hook_shell_script_with_context): |
||
42 | """Execute a hook script, passing a context""" |
||
43 | |||
44 | hooks.run_script_with_context( |
||
45 | hook_shell_script_with_context, |
||
46 | 'tests', |
||
47 | { |
||
48 | 'cookiecutter': { |
||
49 | 'file': 'context_post.txt' |
||
50 | } |
||
51 | }) |
||
52 | assert os.path.isfile('tests/context_post.txt') |
||
53 | assert 'tests' not in os.getcwd() |
||
54 | |||
55 | os.remove('tests/context_post.txt') |
||
56 |