We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 055d2bd commit 3fcf3bcCopy full SHA for 3fcf3bc
1 file changed
tests/test_main.py
@@ -58,9 +58,20 @@ def test_cookiecutter_no_slash(self):
58
self.assertTrue(os.path.isfile('fake-project/README.rst'))
59
self.assertFalse(os.path.exists('fake-project/json/'))
60
61
+ def test_cookiecutter_no_input_extra_context(self):
62
+ """ `Call cookiecutter()` with `no_input=True` and `extra_context` """
63
+ main.cookiecutter(
64
+ 'tests/fake-repo-pre',
65
+ no_input=True,
66
+ extra_context={'repo_name': 'fake-project-extra'}
67
+ )
68
+ self.assertTrue(os.path.isdir('fake-project-extra'))
69
+
70
def tearDown(self):
71
if os.path.isdir('fake-project'):
72
utils.rmtree('fake-project')
73
+ if os.path.isdir('fake-project-extra'):
74
+ utils.rmtree('fake-project-extra')
75
76
77
class TestCookiecutterLocalWithInput(CookiecutterCleanSystemTestCase):
0 commit comments