Skip to content

Commit

Permalink
Extend tests to capture multi-value cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 18, 2021
1 parent 8bcd887 commit 008a079
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,15 @@ def test_as_json(self):
assert md['keywords'] == ['sample', 'package']
desc = md['description']
assert desc.startswith('Once upon a time\nThere was')
assert len(md['requires_dist']) == 2

def test_as_json_egg_info(self):
md = metadata('egginfo-pkg').json
assert 'name' in md
assert md['keywords'] == ['sample', 'package']
desc = md['description']
assert desc.startswith('Once upon a time\nThere was')
assert len(md['classifier']) == 2


class LegacyDots(fixtures.DistInfoPkgWithDotLegacy, unittest.TestCase):
Expand Down

0 comments on commit 008a079

Please sign in to comment.