File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -221,14 +221,14 @@ def _import_helper(
221221 fname = tempfile .mktemp (suffix = ".csv" )
222222 import_flags = IMPORT_MODES_TO_FLAGS [import_mode ]
223223 try :
224- fname = write_import_file (fname )
224+ import_file = write_import_file (fname )
225225 args = ["table" , "import" , table ] + import_flags
226226 if primary_key :
227227 args += ["--pk={}" .format ("," .join (primary_key ))]
228228 if do_continue is True :
229229 args += ["--continue" ]
230230
231- dolt .execute (args + [fname ])
231+ dolt .execute (args + [import_file ])
232232
233233 if commit :
234234 msg = commit_message or f"Committing write to table { table } in { import_mode } mode"
Original file line number Diff line number Diff line change 1+ import os
2+
13import pytest
24
35from doltcli import (
@@ -100,6 +102,7 @@ def test_write_file(init_empty_test_repo, tmp_path):
100102 primary_key = ["id" ],
101103 do_continue = True ,
102104 )
105+ assert os .path .exists (tmp_path )
103106 actual = read_rows (dolt , "characters" )
104107 compare_rows_helper (TEST_ROWS [:2 ], actual )
105108
You can’t perform that action at this time.
0 commit comments