summaryrefslogtreecommitdiff
path: root/tests/test_application.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-03-09 20:26:46 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-22 20:04:45 +0900
commitf346e7dc1d2a96060e41fa9927b9638d21a3e3b7 (patch)
tree5d93c254e0191d0eb980ae2d0999f4b9f38f92f3 /tests/test_application.py
parent8ca9bdfbd41cc547ccacbd6a97ea66c6cf4d4cea (diff)
downloadsphinx-git-f346e7dc1d2a96060e41fa9927b9638d21a3e3b7.tar.gz
Move source_parsers manager to SphinxFactory
Diffstat (limited to 'tests/test_application.py')
-rw-r--r--tests/test_application.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/tests/test_application.py b/tests/test_application.py
index d285aa03d..84f973353 100644
--- a/tests/test_application.py
+++ b/tests/test_application.py
@@ -85,13 +85,6 @@ def test_domain_override(app, status, warning):
@pytest.mark.sphinx(testroot='add_source_parser')
def test_add_source_parser(app, status, warning):
assert set(app.config.source_suffix) == set(['.rst', '.md', '.test'])
- assert set(app.config.source_parsers.keys()) == set(['.md', '.test'])
- assert app.config.source_parsers['.md'].__name__ == 'DummyMarkdownParser'
- assert app.config.source_parsers['.test'].__name__ == 'TestSourceParser'
-
-
-@pytest.mark.sphinx(testroot='add_source_parser-conflicts-with-users-setting')
-def test_add_source_parser_conflicts_with_users_setting(app, status, warning):
- assert set(app.config.source_suffix) == set(['.rst', '.test'])
- assert set(app.config.source_parsers.keys()) == set(['.test'])
- assert app.config.source_parsers['.test'].__name__ == 'DummyTestParser'
+ assert set(app.factory.get_source_parsers().keys()) == set(['.md', '.test'])
+ assert app.factory.get_source_parsers()['.md'].__name__ == 'DummyMarkdownParser'
+ assert app.factory.get_source_parsers()['.test'].__name__ == 'TestSourceParser'