def add_arguments(self, parser):
parser.add_argument(
'files',
nargs=argparse.REMAINDER,
help='You may specify the test files/directories to be executed.'
)
parser.add_argument(
'--recreate',
action='store_true',
dest='recreate',
default=False,
help='Recreate test database (will slow down the test process), '
'used when the database schema changed.'
)
parser.add_argument(
'--capture-stdout', '-cs',
action='store_true',
default=False,
dest='capture_stdout',
help='Tell pytest to capture stdout when certain tests fail.')
评论列表
文章目录