diff options
| author | shimizukawa <shimizukawa@gmail.com> | 2013-06-13 03:22:23 +0000 |
|---|---|---|
| committer | shimizukawa <shimizukawa@gmail.com> | 2013-06-13 03:22:23 +0000 |
| commit | 298dcd6dd79763f794e2c90e78fb39fbde687c25 (patch) | |
| tree | 5d362b88e83368e85aed35e9de6a7006d55a2a2a /tests | |
| parent | a7f6db30ee4c8c7cf6a4748013d71c61a9b9b9d7 (diff) | |
| download | sphinx-298dcd6dd79763f794e2c90e78fb39fbde687c25.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')
| -rw-r--r-- | tests/test_quickstart.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py index a4317b59..825f750e 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' |
