def test_execution(self, parser, pyu): pyu.setup() subparser = make_subparser(parser) add_make_spec_parser(subparser) with io.open("app.py", "w", encoding="utf-8") as f: f.write('print "Hello World"') opts, other = parser.parse_known_args(["make-spec", "-F", "app.py"]) commands._cmd_make_spec(opts, other)
def test_execution(self, parser, pyu): pyu.setup() subparser = make_subparser(parser) add_make_spec_parser(subparser) with io.open('app.py', 'w', encoding='utf-8') as f: f.write('print "Hello World"') opts, other = parser.parse_known_args(['make-spec', '-F', 'app.py']) commands._cmd_make_spec(opts, other)