Beispiel #1
0
class OptparseCommandParserTest(TestCommandParserMixin, TestCase):
    """:type parser: django.core.management.base.OptionParser"""

    def setUp(self):
        self.cmd = OptparseMavenBaseCommand()
        self.parser = self.cmd.create_parser("manage.py", "maven")

    def _handle_argv(self, argv):
        options, args = self.parser.parse_args(argv)
        cmd_options = vars(options)
        handle_default_options(options)
        return args, cmd_options
Beispiel #2
0
 def setUp(self):
     self.cmd = OptparseMavenBaseCommand()
     self.parser = self.cmd.create_parser("manage.py", "maven")