Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_dataset_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_packaged_dataset_dummy_data_files(dataset_name, path_to_dummy_data):
}


def get_pachakged_dataset_config_attributes(dataset_name):
def get_packaged_dataset_config_attributes(dataset_name):
if dataset_name == "json":
# The json dummy data are formatted as the squad format
# which has the list of examples in the field named "data".
Expand Down Expand Up @@ -158,7 +158,7 @@ def check_if_url_is_valid(url):
dataset_builder.config.data_files = get_packaged_dataset_dummy_data_files(
builder_name, path_to_dummy_data
)
for config_attr, value in get_pachakged_dataset_config_attributes(builder_name).items():
for config_attr, value in get_packaged_dataset_config_attributes(builder_name).items():
setattr(dataset_builder.config, config_attr, value)

# mock size needed for dummy data instead of actual dataset
Expand Down