(self)
| 147 | self.assertIn('test.py', z.namelist()) |
| 148 | |
| 149 | def test_create_archive_default_target(self): |
| 150 | # Test packing a directory to the default name. |
| 151 | source = self.tmpdir / 'source' |
| 152 | source.mkdir() |
| 153 | (source / '__main__.py').touch() |
| 154 | zipapp.create_archive(str(source)) |
| 155 | expected_target = self.tmpdir / 'source.pyz' |
| 156 | self.assertTrue(expected_target.is_file()) |
| 157 | |
| 158 | @requires_zlib() |
| 159 | def test_create_archive_with_compression(self): |
nothing calls this directly
no test coverage detected