diff --git a/tests/test_export_html.py b/tests/test_export_html.py index dd50e734..89612bcc 100644 --- a/tests/test_export_html.py +++ b/tests/test_export_html.py @@ -29,3 +29,13 @@ def test_cli_with_output(tmp_path: Path): ) assert result.exit_code == 0 assert os.path.exists(tmp_path / "datacontract.html") + + +def test_schemas_are_rendered(): + """Regression test for #880: schemas should render in the ODCS HTML template.""" + runner = CliRunner() + result = runner.invoke(app, ["export", "./fixtures/export/datacontract.odcs.yaml", "--format", "html"]) + assert result.exit_code == 0 + # The schema name 'orders' and a property name 'order_id' should appear in the output + assert "orders" in result.output + assert "order_id" in result.output