for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_real_hooks_acceptance
--------------------------
Additional tests for `cookiecutter.hooks` module.
import os
from .support import AbstractAcceptanceTest
class TestSerializationAcceptance(AbstractAcceptanceTest):
def _repo_id(self):
return 'test-serialization-acceptance'
def test_cross_hooks_context(self):
context can be updated from a hook to another
template = 'crosshooks'
self.run(template)
assert os.path.exists(os.path.join(self.project_dir, template))
def test_custom_serializer(self):
template = 'custom_serializer'
assert os.path.exists(os.path.join(self.project_dir, 'COPY'))