Skip to content

Commit 78f8dc6

Browse files
committed
fix test since person conversion fails returns none on error
1 parent 4c81e63 commit 78f8dc6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/output/test_pyproject_writer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ def test_from_to_person(person):
7777
assert p.full_name == person.full_name
7878
assert p.email == person.email
7979

80-
with pytest.raises(AttributeError):
81-
p = Poetry._to_person("John Doe")
80+
# this should return None since there is no email
81+
p = Poetry._to_person("John Doe")
82+
assert p is None
8283

8384
# test for setuptools
8485
assert SetupTools._from_person(person) == {

0 commit comments

Comments
 (0)