Esempio n. 1
0
    def test_init_mock_parser(self):
        client = MockClient()
        args = CommandLineClientArguments(client=client, parser=MockArgumentParser())
        self.assertIsNotNone(args)

        args.parse_args(client)

        self.assertEqual(args._bot_root, ".")
        self.assertEqual(args._logging, "logging.yaml")
        self.assertEqual(args._config_name, "config.yaml")
        self.assertEqual(args._config_format, "yaml")
        self.assertEqual(args._no_loop, False)
Esempio n. 2
0
 def parse_arguments(self, argument_parser):
     client_args = CommandLineClientArguments(self, parser=argument_parser)
     client_args.parse_args(self)
     return client_args
Esempio n. 3
0
 def parse_arguments(self, argument_parser):
     client_args = CommandLineClientArguments(self, parser=argument_parser)
     client_args.parse_args(self)
     return client_args