Skip to content

Commit

Permalink
Remove old-styled source_suffix values in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 15, 2024
1 parent 55c8953 commit 4bdef1b
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ class DummyTestParser(Parser):


extensions = ['source_parser']
source_suffix = ['.rst', '.test']
source_suffix = {
'.rst': 'restructuredtext',
'.test': 'restructuredtext',
}
source_parsers = {
'.test': DummyTestParser
}
1 change: 0 additions & 1 deletion tests/roots/test-add_source_parser/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@


extensions = ['source_parser']
source_suffix = ['.rst']
2 changes: 0 additions & 2 deletions tests/roots/test-autosummary/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

extensions = ['sphinx.ext.autosummary']

# The suffix of source filenames.
source_suffix = '.rst'
autosummary_generate = True

exclude_patterns = ['_build']
4 changes: 3 additions & 1 deletion tests/roots/test-build-text/conf.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
exclude_patterns = ['_build']
3 changes: 0 additions & 3 deletions tests/roots/test-ext-autodoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

extensions = ['sphinx.ext.autodoc']

# The suffix of source filenames.
source_suffix = '.rst'

autodoc_mock_imports = [
'dummy'
]
Expand Down
3 changes: 0 additions & 3 deletions tests/roots/test-ext-autosummary/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@

extensions = ['sphinx.ext.autosummary']
autosummary_generate = True

# The suffix of source filenames.
source_suffix = '.rst'
4 changes: 3 additions & 1 deletion tests/roots/test-ext-doctest-skipif/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

project = 'test project for the doctest :skipif: directive'
root_doc = 'skipif'
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
exclude_patterns = ['_build']

doctest_global_setup = '''
Expand Down
4 changes: 3 additions & 1 deletion tests/roots/test-ext-doctest/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@

project = 'test project for doctest'
root_doc = 'doctest'
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
exclude_patterns = ['_build']
1 change: 0 additions & 1 deletion tests/roots/test-inheritance/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
sys.path.insert(0, os.path.abspath('.'))

extensions = ['sphinx.ext.inheritance_diagram']
source_suffix = '.rst'
4 changes: 3 additions & 1 deletion tests/roots/test-intl/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
project = 'Sphinx intl <Tests>'
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
keep_warnings = True
templates_path = ['_templates']
html_additional_pages = {'contents': 'contents.html'}
Expand Down
4 changes: 3 additions & 1 deletion tests/roots/test-templating/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
project = 'Sphinx templating <Tests>'
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
keep_warnings = True
templates_path = ['_templates']
release = version = '2013.120'
Expand Down
4 changes: 3 additions & 1 deletion tests/roots/test-versioning/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
project = 'versioning test root'
source_suffix = '.txt'
source_suffix = {
'.txt': 'restructuredtext'
}
exclude_patterns = ['_build']

0 comments on commit 4bdef1b

Please sign in to comment.