mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-08-11 05:24:49 -05:00
Simplify testcases for websupport
Now websupport modules has separated and move into sphinxcontrib-websupport package. They are also tested in the package. Hence, we should test the bridge code for them.
This commit is contained in:
@@ -48,17 +48,6 @@ def test_html_with_set_translator_for_html_(app, status, warning):
|
||||
assert translator_class.__name__ == 'ConfHTMLTranslator'
|
||||
|
||||
|
||||
# this test break test_websupport.test_comments test. why?
|
||||
# @pytest.mark.sphinx(
|
||||
# buildername='dirhtml',
|
||||
# srcdir=(test_roots / 'test-api-set-translator'),
|
||||
# )
|
||||
# def test_dirhtml_set_translator_for_dirhtml(app, status, warning):
|
||||
# translator_class = app.builder.translator_class
|
||||
# assert translator_class
|
||||
# assert translator_class.__name__ == 'ConfDirHTMLTranslator'
|
||||
|
||||
|
||||
@pytest.mark.sphinx('singlehtml', testroot='api-set-translator')
|
||||
def test_singlehtml_set_translator_for_singlehtml(app, status, warning):
|
||||
translator_class = app.builder.translator_class
|
||||
|
||||
Reference in New Issue
Block a user