empd_admin.parsers module¶
Classes
|
An ArgumentParser that does not sys.exit |
Functions
Create a command-line parser |
|
|
Process a comment in a pull request and handle it’s empd-admin commands |
|
Process a line of a github comment |
|
Setup the arguments for a EMPD-data test run based on command line args |
|
Setup the EMPD-admin subparsers |
Test function for |
|
Test function for |
|
Test function for |
|
Test function for |
|
|
Test function for running EMPD fixes |
Test function for |
|
Test function for printing help on the EMPD-admin |
|
Test function for printing help on a command |
|
Test function for |
|
Test function @EMPD-admin without arguments |
|
Test function for |
|
Test function for |
|
Test function for rebuilding fixed postgres tables |
|
Test function for running the EMPD tests |
|
Test function for collecting EMPD tests |
|
Test function for |
|
Test function for |
-
class
empd_admin.parsers.
WebParser
(prog=None, usage=None, description=None, epilog=None, parents=[], formatter_class=<class 'argparse.HelpFormatter'>, prefix_chars='-', fromfile_prefix_chars=None, argument_default=None, conflict_handler='error', add_help=True, allow_abbrev=True)¶ Bases:
argparse.ArgumentParser
An ArgumentParser that does not sys.exit
Methods
error
(message)Prints a usage message incorporating the message to stderr and exits.
exit
([status, message])parse_known_args
(*args, **kwargs)-
error
(message: string)¶ Prints a usage message incorporating the message to stderr and exits.
If you override this in a subclass, it should not return – it should either exit or raise an exception.
-
exit
(status=0, message=None)¶
-
parse_known_args
(*args, **kwargs)¶
-
-
empd_admin.parsers.
get_parser
()¶ Create a command-line parser
-
empd_admin.parsers.
process_comment
(comment, pr_owner, pr_repo, pr_branch, pr_num)¶ Process a comment in a pull request and handle it’s empd-admin commands
- Returns
The message that shall be posted on Github
- Return type
-
empd_admin.parsers.
process_comment_line
(line, pr_owner, pr_repo, pr_branch, pr_num)¶ Process a line of a github comment
-
empd_admin.parsers.
setup_pytest_args
(namespace)¶ Setup the arguments for a EMPD-data test run based on command line args
- Parameters
argparse.Namespace – The namespace of the parsed command line arguments
- Returns
list of str – The arguments to the call of pytest
list of str – Specific files that should be run
-
empd_admin.parsers.
setup_subparsers
(parser, pr_owner=None, pr_repo=None, pr_branch=None, add_help=True)¶ Setup the EMPD-admin subparsers
-
empd_admin.parsers.
test_accept_query
()¶ Test function for
accept_query()
-
empd_admin.parsers.
test_createdb
()¶ Test function for
import_database()
-
empd_admin.parsers.
test_finish
()¶ Test function for
finish_pr()
-
empd_admin.parsers.
test_fix
()¶ Test function for running EMPD fixes
-
empd_admin.parsers.
test_generate
()¶ Test function for
empd_admin.generate_repo.db2repo()
-
empd_admin.parsers.
test_help
()¶ Test function for printing help on the EMPD-admin
-
empd_admin.parsers.
test_help_merge_meta
()¶ Test function for printing help on a command
-
empd_admin.parsers.
test_merge_meta
()¶ Test function for
merge_meta()
-
empd_admin.parsers.
test_no_command
()¶ Test function @EMPD-admin without arguments
-
empd_admin.parsers.
test_query
()¶ Test function for
query()
-
empd_admin.parsers.
test_rebase
()¶ Test function for
rebase_master()
-
empd_admin.parsers.
test_rebuild
()¶ Test function for rebuilding fixed postgres tables
-
empd_admin.parsers.
test_test
()¶ Test function for running the EMPD tests
-
empd_admin.parsers.
test_test_collect
()¶ Test function for collecting EMPD tests
-
empd_admin.parsers.
test_unaccept
()¶ Test function for
unaccept()
-
empd_admin.parsers.
test_unaccept_query
()¶ Test function for
unaccept_query()