diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-24 00:48:02 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-25 02:03:56 +0900 |
| commit | 0cdd9ee72a5def1528d3f6a80622b26ae3cdacbc (patch) | |
| tree | fbdb9b3cf70360716e5c692c9d70a0ac8f9329cf /tests/test_application.py | |
| parent | 69f69628ed8e97f9e3caed3704aea2106477a2d8 (diff) | |
| download | sphinx-git-0cdd9ee72a5def1528d3f6a80622b26ae3cdacbc.tar.gz | |
Integrate source_suffix and source_parsers (refs: #4474)
Diffstat (limited to 'tests/test_application.py')
| -rw-r--r-- | tests/test_application.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_application.py b/tests/test_application.py index 12b6bbe60..c993f47bb 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -84,7 +84,9 @@ 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.registry.get_source_parsers().keys()) == set(['*', '.md', '.test']) + assert '.rst' in app.registry.get_source_parsers() + assert '.md' in app.registry.get_source_parsers() + assert '.test' in app.registry.get_source_parsers() assert app.registry.get_source_parsers()['.md'].__name__ == 'DummyMarkdownParser' assert app.registry.get_source_parsers()['.test'].__name__ == 'TestSourceParser' |
