Skip to content

Commit 4bdef1b

Browse files
committed
Remove old-styled source_suffix values in tests
1 parent 55c8953 commit 4bdef1b

File tree

12 files changed

+22
-17
lines changed

12 files changed

+22
-17
lines changed

tests/roots/test-add_source_parser-conflicts-with-users-setting/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class DummyTestParser(Parser):
1111

1212

1313
extensions = ['source_parser']
14-
source_suffix = ['.rst', '.test']
14+
source_suffix = {
15+
'.rst': 'restructuredtext',
16+
'.test': 'restructuredtext',
17+
}
1518
source_parsers = {
1619
'.test': DummyTestParser
1720
}

tests/roots/test-add_source_parser/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66

77
extensions = ['source_parser']
8-
source_suffix = ['.rst']

tests/roots/test-autosummary/conf.py

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
extensions = ['sphinx.ext.autosummary']
77

8-
# The suffix of source filenames.
9-
source_suffix = '.rst'
108
autosummary_generate = True
119

1210
exclude_patterns = ['_build']

tests/roots/test-build-text/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
source_suffix = '.txt'
1+
source_suffix = {
2+
'.txt': 'restructuredtext'
3+
}
24
exclude_patterns = ['_build']

tests/roots/test-ext-autodoc/conf.py

-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
extensions = ['sphinx.ext.autodoc']
77

8-
# The suffix of source filenames.
9-
source_suffix = '.rst'
10-
118
autodoc_mock_imports = [
129
'dummy'
1310
]

tests/roots/test-ext-autosummary/conf.py

-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,3 @@
55

66
extensions = ['sphinx.ext.autosummary']
77
autosummary_generate = True
8-
9-
# The suffix of source filenames.
10-
source_suffix = '.rst'

tests/roots/test-ext-doctest-skipif/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
project = 'test project for the doctest :skipif: directive'
44
root_doc = 'skipif'
5-
source_suffix = '.txt'
5+
source_suffix = {
6+
'.txt': 'restructuredtext'
7+
}
68
exclude_patterns = ['_build']
79

810
doctest_global_setup = '''

tests/roots/test-ext-doctest/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22

33
project = 'test project for doctest'
44
root_doc = 'doctest'
5-
source_suffix = '.txt'
5+
source_suffix = {
6+
'.txt': 'restructuredtext'
7+
}
68
exclude_patterns = ['_build']

tests/roots/test-inheritance/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
sys.path.insert(0, os.path.abspath('.'))
55

66
extensions = ['sphinx.ext.inheritance_diagram']
7-
source_suffix = '.rst'

tests/roots/test-intl/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
project = 'Sphinx intl <Tests>'
2-
source_suffix = '.txt'
2+
source_suffix = {
3+
'.txt': 'restructuredtext'
4+
}
35
keep_warnings = True
46
templates_path = ['_templates']
57
html_additional_pages = {'contents': 'contents.html'}

tests/roots/test-templating/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
project = 'Sphinx templating <Tests>'
2-
source_suffix = '.txt'
2+
source_suffix = {
3+
'.txt': 'restructuredtext'
4+
}
35
keep_warnings = True
46
templates_path = ['_templates']
57
release = version = '2013.120'

tests/roots/test-versioning/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
project = 'versioning test root'
2-
source_suffix = '.txt'
2+
source_suffix = {
3+
'.txt': 'restructuredtext'
4+
}
35
exclude_patterns = ['_build']

0 commit comments

Comments
 (0)