| Conditions | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 35 | @pytest.mark.xfail( |
||
| 36 | reason='issue #850', |
||
| 37 | strict=True, |
||
| 38 | ) |
||
| 39 | def test_hook_with_extension(template, output_dir): |
||
| 40 | project_dir = main.cookiecutter( |
||
| 41 | template, |
||
| 42 | no_input=True, |
||
| 43 | output_dir=output_dir, |
||
| 44 | extra_context={ |
||
| 45 | 'project_slug': 'foobar', |
||
| 46 | 'name': 'Cookiemonster', |
||
| 47 | }, |
||
| 48 | ) |
||
| 49 | |||
| 50 | readme_file = os.path.join(project_dir, 'README.rst') |
||
| 51 | |||
| 52 | with codecs.open(readme_file, encoding='utf8') as f: |
||
| 53 | readme = f.read().strip() |
||
| 54 | |||
| 55 | assert readme == 'Hello Cookiemonster!' |
||
| 56 |