Mercurial > hg > orthanc-tests
comparison Tests/Run.py @ 6:6d645b3011e1
test_hierarchy
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 17 Jun 2015 11:31:11 +0200 |
parents | 19eb87a45685 |
children | f8d781d1d267 |
comparison
equal
deleted
inserted
replaced
5:19eb87a45685 | 6:6d645b3011e1 |
---|---|
54 parser.add_argument('--password', | 54 parser.add_argument('--password', |
55 default = 'orthanctest', | 55 default = 'orthanctest', |
56 help = 'Password to the REST API') | 56 help = 'Password to the REST API') |
57 parser.add_argument('--force', help = 'Do not warn the user', | 57 parser.add_argument('--force', help = 'Do not warn the user', |
58 action = 'store_true') | 58 action = 'store_true') |
59 parser.add_argument('options', metavar = 'N', nargs = '*', | |
60 help='Arguments to Python unittest') | |
59 | 61 |
60 args = parser.parse_args() | 62 args = parser.parse_args() |
61 | 63 |
62 if not args.force: | 64 if not args.force: |
63 print(""" | 65 print(""" |
121 | 123 |
122 | 124 |
123 try: | 125 try: |
124 print('\nStarting the tests...') | 126 print('\nStarting the tests...') |
125 SetOrthancParameters(LOCAL, REMOTE) | 127 SetOrthancParameters(LOCAL, REMOTE) |
126 unittest.main(argv = [ sys.argv[0] ]) | 128 unittest.main(argv = [ sys.argv[0] ] + args.options) |
127 | 129 |
128 finally: | 130 finally: |
129 print('\nDone') | 131 print('\nDone') |
130 | 132 |
131 # The tests have stopped or "Ctrl-C" has been hit | 133 # The tests have stopped or "Ctrl-C" has been hit |