Skip to content

Commit

Permalink
Added asserts in setup module to track missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
fjwillemsen committed Apr 26, 2024
1 parent ff43161 commit 1c8c763
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ def setup_module():
# copy the import run test files to the import run folder
assert import_runs_source_path.exists()
for import_run_file in import_runs_source_path.iterdir():
if not import_run_file.is_file():
continue
assert import_run_file.exists()
destination = Path(import_runs_path / import_run_file.name).resolve()
import_runs_filepaths.append(Path(copyfile(import_run_file, destination)))
import_runs_filepaths.append(Path(copyfile(str(import_run_file), str(destination))))
assert destination == import_runs_filepaths[-1].resolve()
assert destination.exists() and destination.is_file()

Expand Down

0 comments on commit 1c8c763

Please sign in to comment.