-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathargs.py
47 lines (36 loc) · 1.81 KB
/
args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: UTF-8 -*-
import argparse
_parser = argparse.ArgumentParser(description="Run tests for OERPLib.")
_parser.add_argument('--server', default='localhost',
help="Host")
#_parser.add_argument('--protocol', default='xmlrpc',
# help="Protocol")
#_parser.add_argument('--port', default='8069',
# help="Port")
_parser.add_argument('--test_xmlrpc', action='store_true',
help="Test the XML-RPC protocol")
_parser.add_argument('--xmlrpc_port', default='8069',
help="Port to use with the XML-RPC protocol")
_parser.add_argument('--test_netrpc', action='store_true',
help="Test the NET-RPC protocol")
_parser.add_argument('--netrpc_port', default='8070',
help="Port to use with the NET-RPC protocol")
_parser.add_argument('--version', default=None,
help="OpenERP version used")
_parser.add_argument('--super_admin_passwd', default='admin',
help="Super administrator password")
_parser.add_argument('--database', default='oerplib_test',
help="Name of the database")
_parser.add_argument('--user', default='admin',
help="User login")
_parser.add_argument('--passwd', default='admin',
help="User password")
_parser.add_argument('--create_db', action='store_true',
help="Create a database for tests")
_parser.add_argument('--drop_db', action='store_true',
help="Drop the created database. "
"Works only with --create_db")
_parser.add_argument('--verbosity', default=2, type=int,
help="Output verbosity of unittest")
ARGS = _parser.parse_args()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: