Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/test_export_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading