1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
from pathlib import Path
import pytest
@pytest.mark.parametrize(
"test_app", [{"buildername": "html", "srcdir": "doc_test/arch_doc"}], indirect=True
)
def test_doc_build_html(test_app):
app = test_app
app.build()
html = Path(app.outdir, "index.html").read_text(encoding="utf8")
assert "<object data=" in html # PlantUML got generated
assert "peter --> max" in html # First Spec diagram is loaded
assert "Yehaa <--> Ups" in html # Second Spec diagram is loaded
assert "Yehaa --> peter" in html # Combined diagram is loaded
|