@@ -33,13 +33,13 @@ def example_file_path(test_dir):
33
33
@pytest .fixture
34
34
def generate_file_bundle_collection (test_dir ):
35
35
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
38
38
39
39
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
43
43
44
44
45
45
def test_number_file_bundle (generate_file_bundle_collection ):
@@ -52,29 +52,29 @@ def test_number_file_bundle(generate_file_bundle_collection):
52
52
53
53
54
54
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
56
56
dataset_description_location = os .path .join (
57
57
test_dir , "dataset_description.json" )
58
- assert len (file_bundels [dataset_description_location ]) == 1
58
+ assert len (file_bundles [dataset_description_location ]) == 1
59
59
60
60
for item in collection :
61
61
if item .type_ == "https://openminds.ebrains.eu/core/FileBundle" and item .name == path_name :
62
62
main_file_boundle = item
63
63
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
65
65
66
66
67
67
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
69
69
70
70
reference_boundels = []
71
71
for file in example_file_bubdels :
72
72
reference_boundels .append (path_name + "_" + file )
73
73
reference_boundels .append (path_name )
74
74
75
- test_bundels = file_bundels [example_file_path ]
75
+ test_bundles = file_bundles [example_file_path ]
76
76
77
- assert len (test_bundels ) == len (reference_boundels )
77
+ assert len (test_bundles ) == len (reference_boundels )
78
78
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