MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / add_arguments

Function add_arguments

web/regression/runtests.py:357–389  ·  view source on GitHub ↗

This function parse the command line arguments(project's package name e.g. browser) & add into parser :return args: command line argument for pgadmin's package name :rtype: argparse namespace

()

Source from the content-addressed store, hash-verified

355
356
357def add_arguments():
358 """
359 This function parse the command line arguments(project's package name
360 e.g. browser) & add into parser
361
362 :return args: command line argument for pgadmin's package name
363 :rtype: argparse namespace
364 """
365
366 parser = argparse.ArgumentParser(description='Test suite for pgAdmin4')
367 parser.add_argument(
368 '--pkg',
369 help='Executes the test cases of particular package and subpackages'
370 )
371 parser.add_argument(
372 '--exclude',
373 help='Skips execution of the test cases of particular package and '
374 'sub-packages'
375 )
376 parser.add_argument(
377 '--default_browser',
378 help='Executes the feature test in specific browser'
379 )
380 parser.add_argument(
381 '--modules',
382 help='Executes the feature test for specific modules in pkg'
383 )
384 parser.add_argument('--parallel', nargs='?', const=True,
385 type=bool, default=False,
386 help='Enable parallel Feature Tests')
387 arg = parser.parse_args()
388
389 return arg
390
391
392def sig_handler(signo, frame):

Callers 1

runtests.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected