summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-10-07 11:52:12 +0200
committerGeorg Brandl <georg@python.org>2011-10-07 11:52:12 +0200
commit05149a9505c65ebc9c74cd08d8afaab30e91f646 (patch)
tree913cc7f0757f336835a03b09894e341a3123bb91 /tests/test_quickstart.py
parent1b5db064bd78fcec62a67ef3d255970a83b7c336 (diff)
downloadsphinx-05149a9505c65ebc9c74cd08d8afaab30e91f646.tar.gz
Split user queries and file generation in quickstart into two functions.
Diffstat (limited to 'tests/test_quickstart.py')
-rw-r--r--tests/test_quickstart.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index 798d8d56..cca89ed1 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -85,7 +85,9 @@ def test_quickstart_defaults(tempdir):
'Project version': '0.1',
}
qs.term_input = mock_raw_input(answers)
- qs.inner_main([])
+ d = {}
+ qs.ask_user(d)
+ qs.generate(d)
conffile = tempdir / 'conf.py'
assert conffile.isfile()
@@ -134,7 +136,7 @@ def test_quickstart_all_answers(tempdir):
'todo': 'n',
'coverage': 'no',
'pngmath': 'N',
- 'jsmath': 'no',
+ 'mathjax': 'no',
'ifconfig': 'no',
'viewcode': 'no',
'Create Makefile': 'no',
@@ -143,7 +145,9 @@ def test_quickstart_all_answers(tempdir):
}
qs.term_input = mock_raw_input(answers, needanswer=True)
qs.TERM_ENCODING = 'utf-8'
- qs.inner_main([])
+ d = {}
+ qs.ask_user(d)
+ qs.generate(d)
conffile = tempdir / 'source' / 'conf.py'
assert conffile.isfile()