Create a temporary JSON file for testing.
(tmp_path, sample_json_data)
| 273 | |
| 274 | @pytest.fixture |
| 275 | def temp_json_file(tmp_path, sample_json_data): |
| 276 | """Create a temporary JSON file for testing.""" |
| 277 | json_file = tmp_path / "test_data.json" |
| 278 | json_file.write_text(json.dumps(sample_json_data, indent=2)) |
| 279 | return str(json_file) |
| 280 | |
| 281 | |
| 282 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected