MCPcopy Index your code
hub / github.com/pathwaycom/pathway / generate_jsonlines

Function generate_jsonlines

python/pathway/tests/test_errors.py:1275–1284  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

1273
1274
1275def generate_jsonlines(path: Path):
1276 with open(path, "w") as f:
1277 f.write(
1278 """{"a": 1, "b": 2, "c": 3}
1279{"a": 2, "b": "x", "c": 3}
1280{"a": 1, "b": 3, "c": "y"}
1281{"a": 6, "b": "1", "c": "t"}
1282{"a": 7, "b": 1, "c": null}
1283"""
1284 )
1285
1286
1287def test_csv_reading(tmp_path):

Callers 2

test_jsonlines_readingFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected