MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_script

Method test_script

Lib/test/test_argparse.py:7081–7084  ·  view source on GitHub ↗
(self, compiled=False)

Source from the content-addressed store, hash-verified

7079 f'usage: {expected} [-h]')
7080
7081 def test_script(self, compiled=False):
7082 basename = os_helper.TESTFN
7083 script_name = self.make_script(self.dirname, basename, compiled=compiled)
7084 self.check_usage(os.path.basename(script_name), script_name, '-h')
7085
7086 def test_script_compiled(self):
7087 self.test_script(compiled=True)

Callers 1

test_script_compiledMethod · 0.95

Calls 3

make_scriptMethod · 0.95
check_usageMethod · 0.95
basenameMethod · 0.80

Tested by

no test coverage detected