Create metadata for a dist-info package with name and files.
(name, files=dict(METADATA="VERSION: 1.0"))
| 137 | class InvalidMetadataTests(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase): |
| 138 | @staticmethod |
| 139 | def make_pkg(name, files=dict(METADATA="VERSION: 1.0")): |
| 140 | """ |
| 141 | Create metadata for a dist-info package with name and files. |
| 142 | """ |
| 143 | return { |
| 144 | f'{name}.dist-info': files, |
| 145 | } |
| 146 | |
| 147 | def test_valid_dists_preferred(self): |
| 148 | """ |
no outgoing calls
no test coverage detected