source_suffix can now be a list.

This commit is contained in:
Georg Brandl
2015-02-08 20:13:47 +01:00
parent 4b396d4232
commit bf3bdcc7f5
12 changed files with 51 additions and 29 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ jsmath_path = 'dummy.js'
templates_path = ['_templates']
master_doc = 'contents'
source_suffix = '.txt'
source_suffix = ['.txt', '.add']
project = 'Sphinx <Tests>'
copyright = '2010-2014, Georg Brandl & Team'
copyright = '2010-2015, Georg Brandl & Team'
# If this is changed, remember to update the versionchanges!
version = '0.6'
release = '0.6alpha1'
+2 -2
View File
@@ -144,7 +144,7 @@ def test_quickstart_defaults(tempdir):
execfile_(conffile, ns)
assert ns['extensions'] == []
assert ns['templates_path'] == ['_templates']
assert ns['source_suffix'] == '.rst'
assert ns['source_suffix'] == ['.rst']
assert ns['master_doc'] == 'index'
assert ns['project'] == 'Sphinx Test'
assert ns['copyright'] == '%s, Georg Brandl' % time.strftime('%Y')
@@ -203,7 +203,7 @@ def test_quickstart_all_answers(tempdir):
'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo'
]
assert ns['templates_path'] == ['.templates']
assert ns['source_suffix'] == '.txt'
assert ns['source_suffix'] == ['.txt']
assert ns['master_doc'] == 'contents'
assert ns['project'] == u'STASI™'
assert ns['copyright'] == u'%s, Wolfgang Schäuble & G\'Beckstein' % \