Ejemplo n.º 1
0
 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'])
         build(opts, other)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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'])
         build(opts, other)
Ejemplo n.º 4
0
 def test_build_no_options(self, parser):
     subparser = make_subparser(parser)
     add_build_parser(subparser)
     with pytest.raises(SystemExit):
         parser.parse_known_args(['build'])
Ejemplo n.º 5
0
 def test_build_no_options(self, parser):
     subparser = make_subparser(parser)
     add_build_parser(subparser)
     with pytest.raises(SystemExit):
         parser.parse_known_args(["build"])