MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / temp_json_file

Function temp_json_file

tests/conftest.py:275–279  ·  view source on GitHub ↗

Create a temporary JSON file for testing.

(tmp_path, sample_json_data)

Source from the content-addressed store, hash-verified

273
274@pytest.fixture
275def 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected