-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35c93a3
commit a1d9a1c
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,3 +167,28 @@ def test_convert_optional_dependencies(): | |
'foo; (os_name == "nt" or sys_platform == "win32") and extra == "test"', | ||
'bar; os_name == "posix" and sys_platform == "linux" and extra == "test"', | ||
] | ||
|
||
|
||
def test_convert_author_email(): | ||
metadata = pyproject_metadata.StandardMetadata.from_pyproject( | ||
{ | ||
'project': { | ||
'name': 'example', | ||
'version': '0.1.0', | ||
'authors': [ | ||
{ | ||
'name': 'John Doe, Inc.', | ||
'email': '[email protected]', | ||
}, | ||
{ | ||
'name': 'Kate Doe, LLC.', | ||
'email': '[email protected]', | ||
} | ||
], | ||
}, | ||
} | ||
) | ||
message = metadata.as_rfc822() | ||
assert message.headers['Author-Email'] == [ | ||
'"John Doe, Inc." <[email protected]>, "Kate Doe, LLC." <[email protected]>' | ||
] |