MCPcopy Index your code
hub / github.com/python/cpython / test_create_archive_default_target

Method test_create_archive_default_target

Lib/test/test_zipapp.py:149–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 5

strFunction · 0.85
assertTrueMethod · 0.80
mkdirMethod · 0.45
touchMethod · 0.45
is_fileMethod · 0.45

Tested by

no test coverage detected