Create a temporary XML file for testing.
(tmp_path, sample_xml)
| 289 | |
| 290 | @pytest.fixture |
| 291 | def temp_xml_file(tmp_path, sample_xml): |
| 292 | """Create a temporary XML file for testing.""" |
| 293 | xml_file = tmp_path / "test_data.xml" |
| 294 | xml_file.write_text(sample_xml) |
| 295 | return str(xml_file) |
| 296 | |
| 297 | |
| 298 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected