(self)
| 23 | self.tmpdir = pathlib.Path(tmpdir.name) |
| 24 | |
| 25 | def test_create_archive(self): |
| 26 | # Test packing a directory. |
| 27 | source = self.tmpdir / 'source' |
| 28 | source.mkdir() |
| 29 | (source / '__main__.py').touch() |
| 30 | target = self.tmpdir / 'source.pyz' |
| 31 | zipapp.create_archive(str(source), str(target)) |
| 32 | self.assertTrue(target.is_file()) |
| 33 | |
| 34 | def test_create_archive_with_pathlib(self): |
| 35 | # Test packing a directory using Path objects for source and target. |
nothing calls this directly
no test coverage detected