Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Allow the test to pass if custom implementation is used
Browse files Browse the repository at this point in the history
  • Loading branch information
kazemnejad authored Dec 31, 2023
1 parent d4db498 commit 16c3f80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def test_split_file(task_obj: Task):

def test_task_config_matches_provided_sets(task_obj: Task):
"""Test case to verify if the task config matches the provided sets"""
class_dict = task_obj.__class__.__dict__
if "get_datasets_raw" in class_dict and "get_prepared_datasets" in class_dict:
pytest.skip("Task has custom get_datasets_raw and prepared_dataset builder.")

datasets_raw = task_obj.get_datasets_raw()

task_sets = [DatasetSplit.TEST.value]
Expand Down

0 comments on commit 16c3f80

Please sign in to comment.