diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-29 21:33:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-29 21:33:53 +0900 |
commit | c98a0280044253b3658a4d7d266dcfe390a838cf (patch) | |
tree | d4d500f2dad3bbdab82820f1f4bb2ae5bc97a6ff /tests/test_intl.py | |
parent | d2c3d54bb9a46c5e7a0d14c3345e489d7592de9a (diff) | |
parent | 973c3ffa25f6f14e53382f7a45ffbeee9d252b3c (diff) | |
download | sphinx-git-c98a0280044253b3658a4d7d266dcfe390a838cf.tar.gz |
Merge pull request #5385 from tk0miya/change_master_doc_to_index
The default setting for master_doc is changed to 'index'
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r-- | tests/test_intl.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py index 09b7ac63b..8a83b711a 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -106,7 +106,7 @@ def assert_count(expected_expr, result, count): @pytest.mark.test_params(shared_result='test_intl_basic') def test_text_toctree(app): app.build() - result = (app.outdir / 'contents.txt').text(encoding='utf-8') + result = (app.outdir / 'index.txt').text(encoding='utf-8') assert_startswith(result, u"CONTENTS\n********\n\nTABLE OF CONTENTS\n") @@ -155,7 +155,7 @@ def test_text_title_underline(app): def test_text_subdirs(app): app.build() # --- check translation in subdirs - result = (app.outdir / 'subdir' / 'contents.txt').text(encoding='utf-8') + result = (app.outdir / 'subdir' / 'index.txt').text(encoding='utf-8') assert_startswith(result, u"1. subdir contents\n******************\n") @@ -448,8 +448,8 @@ def test_text_admonitions(app): def test_gettext_toctree(app): app.build() # --- toctree - expect = read_po(app.srcdir / 'contents.po') - actual = read_po(app.outdir / 'contents.pot') + expect = read_po(app.srcdir / 'index.po') + actual = read_po(app.outdir / 'index.pot') for expect_msg in [m for m in expect if m.id]: assert expect_msg.id in [m.id for m in actual if m.id] @@ -615,7 +615,7 @@ def test_gettext_dont_rebuild_mo(make_app, app_params, build_mo): def test_html_meta(app): app.build() # --- test for meta - result = (app.outdir / 'contents.html').text(encoding='utf-8') + result = (app.outdir / 'index.html').text(encoding='utf-8') expected_expr = '<meta content="TESTDATA FOR I18N" name="description" />' assert expected_expr in result expected_expr = '<meta content="I18N, SPHINX, MARKUP" name="keywords" />' @@ -744,7 +744,7 @@ def test_html_docfields(app): def test_html_template(app): app.build() # --- gettext template - result = (app.outdir / 'index.html').text(encoding='utf-8') + result = (app.outdir / 'contents.html').text(encoding='utf-8') assert "WELCOME" in result assert "SPHINX 2013.120" in result @@ -927,7 +927,7 @@ def test_xml_role_xref(app): para1, ['LINK TO', "I18N ROCK'N ROLE XREF", ',', 'CONTENTS', ',', 'SOME NEW TERM', '.'], - ['i18n-role-xref', 'contents', + ['i18n-role-xref', 'index', 'glossary_terms#term-some-term']) para2 = sec2.findall('paragraph') @@ -944,7 +944,7 @@ def test_xml_role_xref(app): assert_elem( para2[2], ['LINK TO', 'I18N WITH GLOSSARY TERMS', 'AND', 'CONTENTS', '.'], - ['glossary_terms', 'contents']) + ['glossary_terms', 'index']) assert_elem( para2[3], ['LINK TO', '--module', 'AND', '-m', '.'], |