4
4
5
5
6
6
def test_correct_initialization ():
7
- extracted_licensing_info = ExtractedLicensingInfo ("id" , "text" , "name" , "comment" , [ "reference" ] )
7
+ extracted_licensing_info = ExtractedLicensingInfo ("id" , "text" , "name" , [ "reference" ], "comment" )
8
8
assert extracted_licensing_info .license_id == "id"
9
9
assert extracted_licensing_info .extracted_text == "text"
10
10
assert extracted_licensing_info .license_name == "name"
11
- assert extracted_licensing_info .comment == "comment"
12
11
assert extracted_licensing_info .cross_references == ["reference" ]
12
+ assert extracted_licensing_info .comment == "comment"
13
13
14
14
15
15
def test_wrong_type_in_license_id ():
@@ -27,11 +27,11 @@ def test_wrong_type_in_license_name():
27
27
ExtractedLicensingInfo (license_name = 42 )
28
28
29
29
30
- def test_wrong_type_in_comment ():
30
+ def test_wrong_type_in_cross_references ():
31
31
with pytest .raises (TypeError ):
32
- ExtractedLicensingInfo (comment = 42 )
32
+ ExtractedLicensingInfo (cross_references = [ "ref" , 42 ] )
33
33
34
34
35
- def test_wrong_type_in_cross_references ():
35
+ def test_wrong_type_in_comment ():
36
36
with pytest .raises (TypeError ):
37
- ExtractedLicensingInfo (cross_references = [ "ref" , 42 ] )
37
+ ExtractedLicensingInfo (comment = 42 )
0 commit comments