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

Method test_cmdline_create

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

Source from the content-addressed store, hash-verified

397 return target
398
399 def test_cmdline_create(self):
400 # Test the basic command line API.
401 source = self.tmpdir / 'source'
402 source.mkdir()
403 (source / '__main__.py').touch()
404 args = [str(source)]
405 zipapp.main(args)
406 target = source.with_suffix('.pyz')
407 self.assertTrue(target.is_file())
408
409 def test_cmdline_copy(self):
410 # Test copying an archive.

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected