dirty
This commit is contained in:
parent
9de1a7db79
commit
7bb0188a42
30 changed files with 93 additions and 194 deletions
|
|
@ -0,0 +1,31 @@
|
|||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from byteb4rb1e.sphinxcontrib.testing.pytest.fixtures import (
|
||||
mock_sphinx_testapp,
|
||||
mock_sphinx_testsrc_dir
|
||||
)
|
||||
|
||||
|
||||
def test_default(
|
||||
mock_sphinx_testapp,
|
||||
mock_sphinx_testsrc_dir,
|
||||
) -> None:
|
||||
"""
|
||||
"""
|
||||
src_dir = mock_sphinx_testsrc_dir()
|
||||
(src_dir / 'conf.py').write_text("""
|
||||
project = "foobar"
|
||||
master_doc = "index"
|
||||
extensions = ["byteb4rb1e.sphinxcontrib.theme"]
|
||||
html_theme = "web20"
|
||||
""")
|
||||
|
||||
app = mock_sphinx_testapp(srcdir=src_dir)
|
||||
|
||||
app.build(force_all=True)
|
||||
|
||||
assert (Path(app.outdir) / '_static' / 'style' / 'theme.css').exists()
|
||||
assert (Path(app.outdir) / '_static' / 'script' / 'theme.js').exists()
|
||||
|
||||
3
tests/integration/conftest.py
Normal file
3
tests/integration/conftest.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
pytest_plugins = ["byteb4rb1e.sphinxcontrib.testing.pytest.fixtures"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue