def test_build_no_arguments(self, parser, pyu): pyu.setup() subparser = make_subparser(parser) add_build_parser(subparser) with pytest.raises(SystemExit): with io.open('app.py', 'w', encoding='utf-8') as f: f.write('from __future__ import print_function\n') f.write('print("Hello, World!")') opts, other = parser.parse_known_args(['build', 'app.py']) commands._cmd_build(opts, other)
def test_build_no_arguments(self, parser, pyu): pyu.setup() subparser = make_subparser(parser) add_build_parser(subparser) with pytest.raises(SystemExit): with io.open("app.py", "w", encoding="utf-8") as f: f.write("from __future__ import print_function\n") f.write('print("Hello, World!")') opts, other = parser.parse_known_args(["build", "app.py"]) commands._cmd_build(opts, other)
def test_build_no_arguments(self, parser, pyu): pyu.setup() subparser = make_subparser(parser) add_build_parser(subparser) with pytest.raises(SystemExit): with io.open('app.py', 'w', encoding='utf-8') as f: f.write('from __futute__ import print_function\n') f.write('print("Hello, World!")') opts, other = parser.parse_known_args(['build', 'app.py']) commands._cmd_build(opts, other)