Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
christokur committed Feb 3, 2023
1 parent cc69716 commit 129f50b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_hooks.py
Expand Up @@ -237,11 +237,15 @@ def test_run_hook_debug(self):
hooks.run_hook('pre_gen_project', tests_dir, {})
assert os.path.isfile(os.path.join(tests_dir, 'python_pre.txt'))
assert os.path.isfile(os.path.join(tests_dir, 'shell_pre.txt'))

hooks.run_hook('post_gen_project', tests_dir, {})
assert os.path.isfile(os.path.join(tests_dir, 'shell_post.txt'))
hook_traces = list(pathlib.Path(os.environ['COOKIECUTTER_DEBUG_HOOKS']).glob('*'))
assert len(hook_traces) > 2, os.system("ls -l " + os.environ['COOKIECUTTER_DEBUG_HOOKS'])
hook_traces = list(
pathlib.Path(os.environ['COOKIECUTTER_DEBUG_HOOKS']).glob('*')
)
assert len(hook_traces) > 2, os.system(
"ls -l " + os.environ['COOKIECUTTER_DEBUG_HOOKS']
)
del os.environ['COOKIECUTTER_DEBUG_HOOKS']
shutil.rmtree(debug_hooks_dir)

Expand Down

0 comments on commit 129f50b

Please sign in to comment.