Create a temporary HTML file for testing.
(tmp_path, sample_html)
| 281 | |
| 282 | @pytest.fixture |
| 283 | def temp_html_file(tmp_path, sample_html): |
| 284 | """Create a temporary HTML file for testing.""" |
| 285 | html_file = tmp_path / "test_page.html" |
| 286 | html_file.write_text(sample_html) |
| 287 | return str(html_file) |
| 288 | |
| 289 | |
| 290 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected