summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2013-06-13 03:22:23 +0000
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2013-06-13 03:22:23 +0000
commit8c543c11cc58a01b78ff5b6470a87b765e363d69 (patch)
tree5d362b88e83368e85aed35e9de6a7006d55a2a2a /tests/test_quickstart.py
parentf24eb8c47d3d14c9771db45baab267c930613dec (diff)
downloadsphinx-git-8c543c11cc58a01b78ff5b6470a87b765e363d69.tar.gz
Fix: Output TeX/texinfo/man filename has no basename (only extention) when using multibyte characters to "Project name" on quickstart. Closes #1190
Diffstat (limited to 'tests/test_quickstart.py')
-rw-r--r--tests/test_quickstart.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index a4317b591..825f750ef 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -263,3 +263,25 @@ def test_quickstart_and_build(tmpdir):
app.builder.build_all()
warnings = warnfile.getvalue()
assert not warnings
+
+
+@with_tempdir
+def test_default_filename(tempdir):
+ answers = {
+ 'Root path': tempdir,
+ 'Project name': u'\u30c9\u30a4\u30c4', #Fullwidth characters only
+ 'Author name': 'Georg Brandl',
+ 'Project version': '0.1',
+ }
+ qs.term_input = mock_raw_input(answers)
+ d = {}
+ qs.ask_user(d)
+ qs.generate(d)
+
+ conffile = tempdir / 'conf.py'
+ assert conffile.isfile()
+ ns = {}
+ execfile_(conffile, ns)
+ assert ns['latex_documents'][0][1] == 'sphinx.tex'
+ assert ns['man_pages'][0][1] == 'sphinx'
+ assert ns['texinfo_documents'][0][1] == 'sphinx'