MCPcopy
hub / github.com/maziyarpanahi/openmed / test_to_html

Method test_to_html

tests/unit/test_processing.py:290–299  ·  view source on GitHub ↗

Test HTML output generation.

(self, test_helpers, sample_predictions, sample_text)

Source from the content-addressed store, hash-verified

288 assert "test-model" in json_output
289
290 def test_to_html(self, test_helpers, sample_predictions, sample_text):
291 """Test HTML output generation."""
292 formatter = OutputFormatter()
293 result = test_helpers.create_prediction_result(sample_text, sample_predictions)
294 html_output = formatter.to_html(result)
295
296 assert isinstance(html_output, str)
297 assert "<div" in html_output
298 assert "diabetes" in html_output
299 assert "test-model" in html_output
300
301 def test_to_csv_rows(self, test_helpers, sample_predictions, sample_text):
302 """Test CSV rows generation."""

Callers

nothing calls this directly

Calls 3

to_htmlMethod · 0.95
OutputFormatterClass · 0.90

Tested by

no test coverage detected