mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix 3 test failures that cause by translation changed
This commit is contained in:
parent
30b9acc302
commit
eb0aa50536
@ -271,8 +271,8 @@ def test_numref_with_language_ja(app, status, warning):
|
|||||||
assert '\\hyperref[baz:table22]{Table:\\ref{baz:table22}}' in result
|
assert '\\hyperref[baz:table22]{Table:\\ref{baz:table22}}' in result
|
||||||
assert '\\hyperref[index:code-1]{LIST \\ref{index:code-1}}' in result
|
assert '\\hyperref[index:code-1]{LIST \\ref{index:code-1}}' in result
|
||||||
assert '\\hyperref[baz:code22]{Code-\\ref{baz:code22}}' in result
|
assert '\\hyperref[baz:code22]{Code-\\ref{baz:code22}}' in result
|
||||||
assert '\\hyperref[foo:foo]{Section \\ref{foo:foo}}' in result
|
assert u'\\hyperref[foo:foo]{\\ref{foo:foo} \\u7ae0}' in result
|
||||||
assert '\\hyperref[bar:bar-a]{Section \\ref{bar:bar-a}}' in result
|
assert u'\\hyperref[bar:bar-a]{\\ref{bar:bar-a} \\u7ae0}' in result
|
||||||
assert '\\hyperref[index:fig1]{Fig.\\ref{index:fig1} \\nameref{index:fig1}}' in result
|
assert '\\hyperref[index:fig1]{Fig.\\ref{index:fig1} \\nameref{index:fig1}}' in result
|
||||||
assert '\\hyperref[foo:foo]{Sect.\\ref{foo:foo} \\nameref{foo:foo}}' in result
|
assert '\\hyperref[foo:foo]{Sect.\\ref{foo:foo} \\nameref{foo:foo}}' in result
|
||||||
|
|
||||||
@ -322,7 +322,7 @@ def test_babel_with_language_de(app, status, warning):
|
|||||||
in result)
|
in result)
|
||||||
assert '\\addto\\captionsngerman{\\renewcommand{\\figurename}{Fig.\\@ }}\n' in result
|
assert '\\addto\\captionsngerman{\\renewcommand{\\figurename}{Fig.\\@ }}\n' in result
|
||||||
assert '\\addto\\captionsngerman{\\renewcommand{\\tablename}{Table.\\@ }}\n' in result
|
assert '\\addto\\captionsngerman{\\renewcommand{\\tablename}{Table.\\@ }}\n' in result
|
||||||
assert '\\addto\\extrasngerman{\\def\\pageautorefname{page}}\n' in result
|
assert '\\addto\\extrasngerman{\\def\\pageautorefname{Seite}}\n' in result
|
||||||
assert '\\shorthandoff{"}' in result
|
assert '\\shorthandoff{"}' in result
|
||||||
|
|
||||||
|
|
||||||
@ -342,7 +342,8 @@ def test_babel_with_language_ru(app, status, warning):
|
|||||||
in result)
|
in result)
|
||||||
assert '\\addto\\captionsrussian{\\renewcommand{\\figurename}{Fig.\\@ }}\n' in result
|
assert '\\addto\\captionsrussian{\\renewcommand{\\figurename}{Fig.\\@ }}\n' in result
|
||||||
assert '\\addto\\captionsrussian{\\renewcommand{\\tablename}{Table.\\@ }}\n' in result
|
assert '\\addto\\captionsrussian{\\renewcommand{\\tablename}{Table.\\@ }}\n' in result
|
||||||
assert '\\addto\\extrasrussian{\\def\\pageautorefname{page}}\n' in result
|
assert (u'\\addto\\extrasrussian{\\def\\pageautorefname'
|
||||||
|
'{\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430}}\n' in result)
|
||||||
assert '\\shorthandoff' not in result
|
assert '\\shorthandoff' not in result
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user