Create minimal metadata for a dist-info package with the indicated name on the file system.
(name)
| 100 | class NameNormalizationTests(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase): |
| 101 | @staticmethod |
| 102 | def make_pkg(name): |
| 103 | """ |
| 104 | Create minimal metadata for a dist-info package with |
| 105 | the indicated name on the file system. |
| 106 | """ |
| 107 | return { |
| 108 | f'{name}.dist-info': { |
| 109 | 'METADATA': 'VERSION: 1.0\n', |
| 110 | }, |
| 111 | } |
| 112 | |
| 113 | def test_dashes_in_dist_name_found_as_underscores(self): |
| 114 | """ |
no outgoing calls
no test coverage detected