(header)
| 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 |
no test coverage detected