Test HTML output generation.
(self, test_helpers, sample_predictions, sample_text)
| 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.""" |
nothing calls this directly
no test coverage detected