@@ -21,7 +21,7 @@ def test_handle_person(in_data, out_data):
2121 assert TomlHarvestPlugin .handle_person_in_unknown_format (in_data ) == out_data
2222
2323@pytest .mark .parametrize ("in_data" , [
24- (( "a" )), ( "a" ), ( 15 ), ([{}, ("a" )]), ([ "a" ]), (None )
24+ (15 ), ([{}, (15 ) ]), (None )
2525])
2626def test_handle_person_with_error (in_data ):
2727 with pytest .raises (ValueError ):
@@ -49,8 +49,8 @@ def test_read_from_toml(in_data, out_data, toml_file):
4949 assert TomlHarvestPlugin .read_from_toml (str (toml_file )) == out_data
5050
5151@pytest .mark .parametrize ("in_data" , [
52- ({"project" : {"authors" :"a" }}), ({"tool" : {"poetry" : {"authors" :"a" }}}),
53- ({"project" : {"authors" :["a" ]}}), ({"tool" : {"poetry" : {"authors" :["a" ]}}}),
52+ ({"project" : {"authors" :1 }}), ({"tool" : {"poetry" : {"authors" :1 }}}),
53+ ({"project" : {"authors" :[1 ]}}), ({"tool" : {"poetry" : {"authors" :[1 ]}}}),
5454 ({"project" : {"name" :"a" }, "tool" : {"poetry" : {"name" :"a" }}})
5555])
5656def test_read_from_toml_with_error (in_data , toml_file ):
0 commit comments