From 73c8d2378319069e5c3a6a41960b583f72800c95 Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Tue, 14 May 2024 01:20:53 +0900 Subject: [PATCH] ci: Declare testenv for e2e --- tests/test-e2e/conf.py | 8 ++++++++ tests/test-e2e/index.rst | 2 ++ tests/test_javascript.py | 8 +------- 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 tests/test-e2e/conf.py create mode 100644 tests/test-e2e/index.rst diff --git a/tests/test-e2e/conf.py b/tests/test-e2e/conf.py new file mode 100644 index 0000000..317f894 --- /dev/null +++ b/tests/test-e2e/conf.py @@ -0,0 +1,8 @@ +# noqa: D100 + +extensions = [ + "atsphinx.mini18n", +] + +mini18n_default_language = "en" +mini18n_support_languages = ["en", "ja"] diff --git a/tests/test-e2e/index.rst b/tests/test-e2e/index.rst new file mode 100644 index 0000000..139b90e --- /dev/null +++ b/tests/test-e2e/index.rst @@ -0,0 +1,2 @@ +Test doc for atsphinx-mini18n +============================= diff --git a/tests/test_javascript.py b/tests/test_javascript.py index 6f41b94..732d7cc 100644 --- a/tests/test_javascript.py +++ b/tests/test_javascript.py @@ -49,13 +49,7 @@ def __exit__(self, *args, **kwargs): # noqa: D105 self.shutdown() -@pytest.mark.sphinx( - "mini18n-html", - confoverrides={ - "mini18n_default_language": "en", - "mini18n_support_languages": ["en", "ja"], - }, -) +@pytest.mark.sphinx("mini18n-html", testroot="e2e") def test__root(app: SphinxTestApp, page: Page): app.build() with ServerOnPytest(app.outdir) as server: