Module Import alias ImportFrom alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Call NameLoad Dict Str Dict Str Str Assign NameStore Call NameLoad Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str Str Dict Str Str Assign NameStore Call NameLoad Dict Str Dict Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Str Str Str keyword NameLoad Assert CompareIn Str Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad CompareGtE SubscriptLoad AttributeLoad NameLoad attr Slice Num TupleLoad Num Num Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Str Str keyword NameLoad Assert CompareIn Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call NameLoad Str keyword NameLoad Assert CompareIn Str Call NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Str decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Str decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIn Str NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad Str decorator_list Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list
N/A N/A mock unittest skipIf N/A django N/A pytest django.core.management CommandError call_command django.db.utils ConnectionHandler django.test SimpleTestCase django.utils.six.moves StringIO N/A command_connections django_mysql.management.commands.dbparams.connections N/A sqlite N/A ConnectionHandler N/A default N/A ENGINE django.db.backends.sqlite3 N/A full_db N/A ConnectionHandler N/A default N/A ENGINE NAME USER PASSWORD HOST PORT OPTIONS django.db.backends.mysql mydatabase ausername apassword ahost.example.com 12345 N/A read_default_file ssl /tmp/defaults.cnf N/A ca /tmp/mysql.cert N/A socket_db N/A ConnectionHandler N/A default N/A ENGINE HOST django.db.backends.mysql /etc/mydb.sock DBParamsTests N/A SimpleTestCase N/A test_invalid_number_of_databases N/A N/A self N/A N/A N/A N/A N/A pytest raises CommandError excinfo N/A N/A N/A call_command dbparams default default skip_checks True N/A N/A more than one connection N/A str N/A excinfo value N/A N/A skipIf N/A N/A N/A django VERSION N/A 2 N/A 1 10 argument parsing uses a fixed single argument in Django 1.10+ test_invalid_database N/A N/A self N/A N/A N/A N/A N/A pytest raises CommandError excinfo N/A N/A N/A call_command dbparams nonexistent skip_checks True N/A N/A does not exist N/A str N/A excinfo value N/A test_invalid_both N/A N/A self N/A N/A N/A N/A N/A pytest raises CommandError N/A N/A N/A call_command dbparams dsn True mysql True skip_checks True N/A test_invalid_not_mysql N/A N/A self N/A N/A N/A N/A N/A pytest raises CommandError excinfo N/A N/A N/A call_command dbparams skip_checks True N/A N/A not a MySQL database connection N/A str N/A excinfo value N/A N/A N/A mock patch command_connections sqlite test_mysql_full N/A N/A self N/A N/A N/A out N/A StringIO N/A N/A call_command dbparams stdout out skip_checks True N/A output N/A N/A out getvalue N/A N/A output --defaults-file=/tmp/defaults.cnf --user=ausername --password=apassword --host=ahost.example.com --port=12345 --ssl-ca=/tmp/mysql.cert mydatabase N/A N/A N/A mock patch command_connections full_db test_mysql_socket N/A N/A self N/A N/A N/A out N/A StringIO N/A N/A call_command dbparams stdout out skip_checks True N/A output N/A N/A out getvalue N/A N/A output --socket=/etc/mydb.sock N/A N/A N/A mock patch command_connections socket_db test_dsn_full N/A N/A self N/A N/A N/A out N/A StringIO N/A err N/A StringIO N/A N/A call_command dbparams default dsn True stdout out stderr err skip_checks True N/A output N/A N/A out getvalue N/A N/A output F=/tmp/defaults.cnf,u=ausername,p=apassword,h=ahost.example.com,P=12345,D=mydatabase N/A errors N/A N/A err getvalue N/A N/A SSL params can't be errors N/A N/A N/A mock patch command_connections full_db test_dsn_socket N/A N/A self N/A N/A N/A out N/A StringIO N/A err N/A StringIO N/A N/A call_command dbparams dsn True stdout out stderr err skip_checks True N/A output N/A N/A out getvalue N/A N/A output S=/etc/mydb.sock N/A errors N/A N/A err getvalue N/A N/A errors N/A N/A N/A mock patch command_connections socket_db N/A