From 31db987d681ec32c27281d1e4bf22283cca5b7bd Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 8 Mar 2018 01:11:07 +0900 Subject: [PATCH] Update testcases --- tests/test_build_html.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_build_html.py b/tests/test_build_html.py index ceeb5f01c..7e574ac56 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -537,7 +537,6 @@ def test_numfig_disabled_warn(app, warning): app.build() warnings = warning.getvalue() assert 'index.rst:47: WARNING: numfig is disabled. :numref: is ignored.' in warnings - assert 'index.rst:55: WARNING: no number is assigned for section: index' not in warnings assert 'index.rst:56: WARNING: invalid numfig_format: invalid' not in warnings assert 'index.rst:57: WARNING: invalid numfig_format: Fig %s %s' not in warnings @@ -555,10 +554,10 @@ def test_numfig_disabled_warn(app, warning): (".//li/code/span", '^Table:%s$', True), (".//li/code/span", '^CODE_1$', True), (".//li/code/span", '^Code-%s$', True), - (".//li/code/span", '^foo$', True), - (".//li/code/span", '^bar_a$', True), + (".//li/a/span", '^Section 1$', True), + (".//li/a/span", '^Section 2.1$', True), (".//li/code/span", '^Fig.{number}$', True), - (".//li/code/span", '^Sect.{number}$', True), + (".//li/a/span", '^Sect.1 Foo$', True), ], 'foo.html': [ (".//div[@class='figure']/p[@class='caption']/"