ftnext / sphinx-new-tab-link

Open external links in new tabs of the browser in Sphinx HTML documents
https://ftnext.github.io/sphinx-new-tab-link/guide.html
MIT License
9 stars 2 forks source link

DRY test code #9

Closed ftnext closed 8 months ago

ftnext commented 8 months ago

At v0.2.0, test codes have many duplication. The difference is builder.

% diff tests/sphinx_new_tab_link/test_build_html.py tests/sphinx_new_tab_link/test_build_dirhtml.py
33c33
< @pytest.mark.sphinx("html", testroot="default")
---
> @pytest.mark.sphinx("dirhtml", testroot="default")
53c53
< @pytest.mark.sphinx("html", testroot="default")
---
> @pytest.mark.sphinx("dirhtml", testroot="default")