Commits

Nozomu Kaneko  committed 3ce69b5

fix tests correspond to 6c70ca26a841 (Divide test_intl target ...)

  • Participants
  • Parent commits f137450

Comments (0)

Files changed (1)

File tests/test_intl.py

         assert re.search(expr, result, re.M)
 
 
-@with_app(buildername='text', cleanenv=True,
-          confoverrides={'language': 'xx', 'locale_dirs': ['.'],
-                         'gettext_compact': False})
+@with_intl_app(buildername='text', cleanenv=True)
 def test_i18n_docfields(app):
-    app.builder.build(['i18n/docfields'])
-    result = (app.outdir / 'i18n' / 'docfields.txt').text(encoding='utf-8')
+    app.builder.build(['docfields'])
+    result = (app.outdir / 'docfields.txt').text(encoding='utf-8')
     expect = (u"\nI18N WITH DOCFIELDS"
               u"\n*******************\n"
               u"\nclass class Cls1\n"
     assert result == expect
 
 
-@with_app(buildername='html', cleanenv=True,
-          confoverrides={'language': 'xx', 'locale_dirs': ['.'],
-                         'gettext_compact': False})
+@with_intl_app(buildername='html', cleanenv=True)
 def test_i18n_docfields_html(app):
-    app.builder.build(['i18n/docfields'])
-    result = (app.outdir / 'i18n' / 'docfields.html').text(encoding='utf-8')
+    app.builder.build(['docfields'])
+    result = (app.outdir / 'docfields.html').text(encoding='utf-8')
     # expect no error by build