Example #1
0
def _run_serve(args, cwd, error):
    """Process arguments and run the `serve` subcommand.

    @param args: Namespace of CLI arguments
    @param cwd: current working directory
    @param error: function to call for CLI errors

    """
    logging.debug("unused arguments: {0}".format((cwd, error)))
    return _main.serve(port=args.port, forever=not args.test, temp=args.temp)
Example #2
0
def _run_serve(args, cwd, error):
    """Process arguments and run the `serve` subcommand.

    @param args: Namespace of CLI arguments
    @param cwd: current working directory
    @param error: function to call for CLI errors

    """
    logging.debug("unused arguments: {0}".format((cwd, error)))
    return _main.serve(port=args.port, forever=not args.test, temp=args.temp)
Example #3
0
 def test_serve(self):
     """Verify the server can be started."""
     self.assertTrue(main.serve(forever=False))
Example #4
0
 def test_serve(self):
     """Verify the server can be started."""
     self.assertTrue(main.serve(forever=False))