diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-03 21:38:31 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-04 01:14:16 +0900 |
commit | abcb5bd5eca6ea46ffcc34a55b663083d03f339c (patch) | |
tree | fc2c6046c3842e3ef5efd2b9d15a88c6ff16eeab /tests/test_build_text.py | |
parent | bc02abcb77143d12c08265c4c10ba9c6cd003832 (diff) | |
download | sphinx-git-abcb5bd5eca6ea46ffcc34a55b663083d03f339c.tar.gz |
The default setting for master_doc is changed to 'index'
Diffstat (limited to 'tests/test_build_text.py')
-rw-r--r-- | tests/test_build_text.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_build_text.py b/tests/test_build_text.py index f89187c85..b9e0e61a1 100644 --- a/tests/test_build_text.py +++ b/tests/test_build_text.py @@ -116,8 +116,8 @@ def test_list_items_in_admonition(app, status, warning): @with_text_app() def test_secnums(app, status, warning): app.builder.build_all() - contents = (app.outdir / 'contents.txt').text(encoding='utf8') - lines = contents.splitlines() + index = (app.outdir / 'index.txt').text(encoding='utf8') + lines = index.splitlines() assert lines[0] == "* 1. Section A" assert lines[1] == "" assert lines[2] == "* 2. Section B" @@ -142,8 +142,8 @@ def test_secnums(app, status, warning): app.config.text_secnumber_suffix = " " app.builder.build_all() - contents = (app.outdir / 'contents.txt').text(encoding='utf8') - lines = contents.splitlines() + index = (app.outdir / 'index.txt').text(encoding='utf8') + lines = index.splitlines() assert lines[0] == "* 1 Section A" assert lines[1] == "" assert lines[2] == "* 2 Section B" @@ -168,8 +168,8 @@ def test_secnums(app, status, warning): app.config.text_add_secnumbers = False app.builder.build_all() - contents = (app.outdir / 'contents.txt').text(encoding='utf8') - lines = contents.splitlines() + index = (app.outdir / 'index.txt').text(encoding='utf8') + lines = index.splitlines() assert lines[0] == "* Section A" assert lines[1] == "" assert lines[2] == "* Section B" |