diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-17 22:11:14 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-02-18 01:58:05 +0000 |
commit | c8f4a03daceef4470ddbc34d5879ffd01588a116 (patch) | |
tree | b67cbca3c86b239e84e00b2ca5966e3c273ca18a /tests/test_intl.py | |
parent | 8de6638697b8c785f8022e1f526b549e74d033d1 (diff) | |
download | sphinx-git-c8f4a03daceef4470ddbc34d5879ffd01588a116.tar.gz |
Fix COM812
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r-- | tests/test_intl.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py index c72df1162..bed425b26 100644 --- a/tests/test_intl.py +++ b/tests/test_intl.py @@ -165,22 +165,22 @@ def test_text_inconsistency_warnings(app, warning): warning_fmt % { 'reftype': 'footnote references', 'original': "\\['\\[#\\]_'\\]", - 'translated': "\\[\\]" + 'translated': "\\[\\]", } + warning_fmt % { 'reftype': 'footnote references', 'original': "\\['\\[100\\]_'\\]", - 'translated': "\\[\\]" + 'translated': "\\[\\]", } + warning_fmt % { 'reftype': 'references', 'original': "\\['reference_'\\]", - 'translated': "\\['reference_', 'reference_'\\]" + 'translated': "\\['reference_', 'reference_'\\]", } + warning_fmt % { 'reftype': 'references', 'original': "\\[\\]", - 'translated': "\\['`I18N WITH REFS INCONSISTENCY`_'\\]" + 'translated': "\\['`I18N WITH REFS INCONSISTENCY`_'\\]", }) assert_re_search(expected_warning_expr, warnings) @@ -1161,7 +1161,7 @@ def test_additional_targets_should_not_be_translated(app): 'raw', 'image', ], - } + }, ) def test_additional_targets_should_be_translated(app): app.build() @@ -1242,7 +1242,7 @@ def test_text_references(app, warning): @pytest.mark.sphinx( 'dummy', testroot='images', srcdir='test_intl_images', - confoverrides={'language': 'xx'} + confoverrides={'language': 'xx'}, ) @pytest.mark.xfail(os.name != 'posix', reason="Not working on windows") def test_image_glob_intl(app): @@ -1289,7 +1289,7 @@ def test_image_glob_intl(app): confoverrides={ 'language': 'xx', 'figure_language_filename': '{root}{ext}.{language}', - } + }, ) @pytest.mark.xfail(os.name != 'posix', reason="Not working on windows") def test_image_glob_intl_using_figure_language_filename(app): @@ -1338,7 +1338,7 @@ def getwarning(warnings): srcdir='gettext_allow_fuzzy_translations', confoverrides={ 'language': 'de', - 'gettext_allow_fuzzy_translations': True + 'gettext_allow_fuzzy_translations': True, }) def test_gettext_allow_fuzzy_translations(app): locale_dir = app.srcdir / 'locales' / 'de' / 'LC_MESSAGES' @@ -1357,7 +1357,7 @@ def test_gettext_allow_fuzzy_translations(app): srcdir='gettext_disallow_fuzzy_translations', confoverrides={ 'language': 'de', - 'gettext_allow_fuzzy_translations': False + 'gettext_allow_fuzzy_translations': False, }) def test_gettext_disallow_fuzzy_translations(app): locale_dir = app.srcdir / 'locales' / 'de' / 'LC_MESSAGES' |