Skip to content

Commit

Permalink
Fix test collection generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cfculhane committed May 2, 2021
1 parent 371a53c commit 479e1af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ def gen_test_collection(new_dir) -> Collection:
"""Generates a test collection for us in tests, by copying a template collection"""
# col_dir = Path(tmp_path_factory, "Collection")
# col_dir.mkdir()
print(new_dir)
shutil.copytree(TEMPLATE_COLLECTION_PTH.parent, new_dir, dirs_exist_ok=True)
test_col_pth = Path(new_dir, TEMPLATE_COLLECTION_PTH.name)
assert test_col_pth
test_col = Collection(path=str(TEMPLATE_COLLECTION_PTH))
test_col = Collection(path=str(test_col_pth))
print(f"Test collection created at {test_col_pth}")
return test_col


Expand Down

0 comments on commit 479e1af

Please sign in to comment.