MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / transform_import_header

Function transform_import_header

scripts/export-import-test.py:123–129  ·  view source on GitHub ↗
(header)

Source from the content-addressed store, hash-verified

121
122 # Copying the dataset here is unnecessary as the tests use exported dbs.
123 def transform_import_header(header):
124 new_lines = []
125 for line in header.splitlines(keepends=True):
126 if line.startswith("-DATASET"):
127 line = "-DATASET CSV empty\n"
128 new_lines.append(line)
129 return "".join(new_lines)
130
131 # This is to handle an issue where the exported db seems to be
132 # deleted making the import fail. DBs are still imported with the line

Callers 1

write_split_testfileFunction · 0.85

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected