Skip to content

Commit 68edab2

Browse files
committed
Typo
1 parent 288f929 commit 68edab2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/test_file_bundle.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ def example_file_path(test_dir):
3333
@pytest.fixture
3434
def generate_file_bundle_collection(test_dir):
3535
collection = Collection()
36-
file_bundels, _ = create_file_bundle(test_dir, collection)
37-
return file_bundels, collection
36+
file_bundles, _ = create_file_bundle(test_dir, collection)
37+
return file_bundles, collection
3838

3939

40-
def test_file_bundels_type(generate_file_bundle_collection):
41-
file_bundels, _ = generate_file_bundle_collection
42-
assert type(file_bundels) is dict
40+
def test_file_bundles_type(generate_file_bundle_collection):
41+
file_bundles, _ = generate_file_bundle_collection
42+
assert type(file_bundles) is dict
4343

4444

4545
def test_number_file_bundle(generate_file_bundle_collection):
@@ -52,29 +52,29 @@ def test_number_file_bundle(generate_file_bundle_collection):
5252

5353

5454
def test_dataset_description_location(test_dir, path_name, generate_file_bundle_collection):
55-
file_bundels, collection = generate_file_bundle_collection
55+
file_bundles, collection = generate_file_bundle_collection
5656
dataset_description_location = os.path.join(
5757
test_dir, "dataset_description.json")
58-
assert len(file_bundels[dataset_description_location]) == 1
58+
assert len(file_bundles[dataset_description_location]) == 1
5959

6060
for item in collection:
6161
if item.type_ == "https://openminds.ebrains.eu/core/FileBundle" and item.name == path_name:
6262
main_file_boundle = item
6363

64-
assert file_bundels[dataset_description_location][0].id == main_file_boundle.id
64+
assert file_bundles[dataset_description_location][0].id == main_file_boundle.id
6565

6666

6767
def test_random_file(test_dir, path_name, generate_file_bundle_collection, example_file_path):
68-
file_bundels, _ = generate_file_bundle_collection
68+
file_bundles, _ = generate_file_bundle_collection
6969

7070
reference_boundels = []
7171
for file in example_file_bubdels:
7272
reference_boundels.append(path_name+"_"+file)
7373
reference_boundels.append(path_name)
7474

75-
test_bundels = file_bundels[example_file_path]
75+
test_bundles = file_bundles[example_file_path]
7676

77-
assert len(test_bundels) == len(reference_boundels)
77+
assert len(test_bundles) == len(reference_boundels)
7878

79-
for bundel in test_bundels:
80-
assert bundel.name in reference_boundels
79+
for bundle in test_bundles:
80+
assert bundle.name in reference_boundels

0 commit comments

Comments
 (0)