diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-29 23:52:32 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-03-30 14:50:37 +0900 |
commit | 61098a0ae2e696a804459d36bd74ca57db76eda5 (patch) | |
tree | 2d71c39d199fec7366a013e0b48c1b2fb4bc83ee /tests/test_application.py | |
parent | c1a254f2491436ac304f1f169aa488438abe4193 (diff) | |
download | sphinx-git-61098a0ae2e696a804459d36bd74ca57db76eda5.tar.gz |
Drop features and APIs deprecated in 1.8
Diffstat (limited to 'tests/test_application.py')
-rw-r--r-- | tests/test_application.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_application.py b/tests/test_application.py index f10592b51..8c48e7500 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -61,20 +61,13 @@ def test_extension_in_blacklist(app, status, warning): @pytest.mark.sphinx(testroot='add_source_parser') -@pytest.mark.filterwarnings('ignore:The config variable "source_parsers"') -@pytest.mark.filterwarnings('ignore:app.add_source_parser\\(\\) does not support suffix') def test_add_source_parser(app, status, warning): - assert set(app.config.source_suffix) == {'.rst', '.md', '.test'} + assert set(app.config.source_suffix) == {'.rst', '.test'} # .rst; only in :confval:`source_suffix` assert '.rst' not in app.registry.get_source_parsers() assert app.registry.source_suffix['.rst'] is None - # .md; configured by :confval:`source_suffix` and :confval:`source_parsers` - assert '.md' in app.registry.get_source_parsers() - assert app.registry.source_suffix['.md'] == '.md' - assert app.registry.get_source_parsers()['.md'].__name__ == 'DummyMarkdownParser' - # .test; configured by API assert app.registry.source_suffix['.test'] == 'test' assert 'test' in app.registry.get_source_parsers() |