Skip to content

Commit e58aed7

Browse files
Updated the tests accordingly to the last commit
1 parent 2e7bcdb commit e58aed7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/hermes_toml_test/test_harvest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
])
2626
def 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
])
5656
def test_read_from_toml_with_error(in_data, toml_file):

0 commit comments

Comments
 (0)