-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement mini18n-xxx builder (en only)
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
"""Standard tests.""" | ||
|
||
from io import StringIO | ||
from pathlib import Path | ||
|
||
import pytest | ||
from sphinx.testing.util import SphinxTestApp | ||
|
||
|
||
@pytest.mark.sphinx("html") | ||
def test__it(app: SphinxTestApp, status: StringIO, warning: StringIO): | ||
def test__it(app: SphinxTestApp): | ||
"""Test to pass.""" | ||
app.build() | ||
|
||
|
||
@pytest.mark.sphinx("mini18n-html") | ||
def test__custom_builder(app: SphinxTestApp): | ||
"""Test to pass.""" | ||
app.build() | ||
assert (Path(app.outdir) / "en").exists() |