Skip to content

Commit

Permalink
Adapt tests!
Browse files Browse the repository at this point in the history
  • Loading branch information
dobraczka committed Mar 13, 2024
1 parent 75e865a commit 30d1e8a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ def _copy_old_new(old_path, new_path, file_name):
copyfile(os.path.join(old_path, file_name), os.path.join(new_path, file_name))

orig_data = pathlib.Path(__file__).parent.parent.joinpath("data").absolute()

_copy_old_new(orig_data, data_path, "multi_source_cluster")
_copy_old_new(orig_data, data_path, "imdb_intra_ent_links")
_copy_old_new(orig_data, data_path, "tmdb_intra_ent_links")
_copy_old_new(orig_data, data_path, "tvdb_intra_ent_links")

orig_imdb_path, new_imdb_path = _create_old_new_data_path(
orig_data, data_path, "imdb"
)
Expand All @@ -143,6 +149,7 @@ def _copy_old_new(old_path, new_path, file_name):
_copy_old_new(orig_task_path, new_task_path, "attr_triples_2")
_copy_old_new(orig_task_path, new_task_path, "rel_triples_2")
_copy_old_new(orig_task_path, new_task_path, "ent_links")
_copy_old_new(orig_task_path, new_task_path, "cluster")


@pytest.mark.parametrize("pair", [None, "imdb-tmdb", "imdb-tvdb", "tmdb-tvdb"])
Expand Down

0 comments on commit 30d1e8a

Please sign in to comment.