Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str If CompareEq NameLoad Str body Assign NameStore NameLoad orelse AugAssignAdd NameStore Str Assign NameStore BinOpAdd Str NameLoad FunctionDef arguments args defaults body ImportFrom alias Return SubscriptLoad Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str attr Str Index Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults vararg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg body ImportFrom alias Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str NameLoad If NameLoad body Assign NameStore BinOpAdd TupleLoad Str NameLoad Call NameLoad NameLoad Assign NameStore BinOpAdd TupleLoad Str Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body ImportFrom alias If BoolOpAnd CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str CompareEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Str body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad keyword NameLoad If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str Str Str BinOpMod Str NameLoad Assert BoolOpOr CompareIn Str Call NameLoad AttributeLoad NameLoad attr CompareIn Str Call NameLoad AttributeLoad NameLoad attr Return If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str BinOpMod Str NameLoad Assert BoolOpOr CompareEq AttributeLoad NameLoad attr Num CompareIn Str Call NameLoad AttributeLoad NameLoad attr CompareIn Str Call NameLoad AttributeLoad NameLoad attr Return If CompareEq Call NameLoad Str body If CompareEq NameLoad Str body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad Str attr Return Raise Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Assert BinOpBitXor Call NameLoad NameLoad Call NameLoad NameLoad Str If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str Str Str BinOpMod Str NameLoad Assert BoolOpOr CompareIn Str Call NameLoad AttributeLoad NameLoad attr CompareIn Str Call NameLoad AttributeLoad NameLoad attr Return If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str BinOpMod Str NameLoad Assert BoolOpOr CompareIn Str Call NameLoad AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Return If CompareEq Call NameLoad Str body If CompareEq NameLoad Str body Raise Call NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Raise Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str NameLoad Str Str Return CompareEq AttributeLoad NameLoad attr Num If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad NameLoad Str Str Return CompareEq AttributeLoad NameLoad attr Num If CompareEq Call NameLoad Str body If CompareEq NameLoad Str body Raise Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args defaults body If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str NameLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Return If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad NameLoad Str Str Assert CompareEq AttributeLoad NameLoad attr Num Return If CompareEq Call NameLoad Str body If CompareEq NameLoad Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body With NameLoad body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Return Raise Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args defaults body If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad Str NameLoad Str Str Return Call NameLoad AttributeLoad NameLoad attr If CompareEq Call NameLoad Str body Assign NameStore Call NameLoad NameLoad Str Str Return CompareEq AttributeLoad NameLoad attr Num If CompareEq Call NameLoad Str body If CompareEq NameLoad Str body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body TryExcept body With NameLoad body Expr Call AttributeLoad NameLoad attr Str Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad finalbody Expr Call AttributeLoad NameLoad attr Raise Call NameLoad BinOpMod Str Call NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr orelse With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad orelse Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list
N/A N/A os N/A subprocess N/A sqlite3 N/A pytest django.conf settings django.db connection django.db transaction compat force_text app.models Item N/A DB_NAME N/A N/A N/A settings DATABASES N/A default N/A NAME N/A N/A DB_NAME :memory: N/A N/A TEST_DB_NAME DB_NAME N/A N/A DB_NAME _db_test N/A TEST_DB_NAME N/A test_ DB_NAME get_db_engine N/A N/A N/A N/A django.conf settings N/A N/A N/A N/A N/A N/A N/A settings DATABASES N/A default N/A ENGINE split . N/A -1 N/A CmdResult N/A object N/A __init__ N/A N/A self status_code std_out std_err N/A N/A N/A N/A self status_code status_code N/A N/A self std_out std_out N/A N/A self std_err std_err N/A N/A run_cmd N/A N/A N/A args N/A N/A r N/A N/A subprocess Popen args stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A stdoutdata stderrdata N/A N/A r communicate N/A ret N/A N/A r wait N/A N/A CmdResult ret stdoutdata stderrdata N/A run_mysql N/A N/A N/A args N/A django.conf settings N/A user N/A N/A N/A N/A settings DATABASES N/A default get USER None N/A user N/A N/A args N/A N/A -u user N/A tuple args N/A args N/A N/A mysql N/A tuple args N/A N/A run_cmd args N/A skip_if_sqlite_in_memory N/A N/A N/A N/A django.conf settings N/A N/A N/A N/A N/A N/A settings DATABASES N/A default N/A ENGINE django.db.backends.sqlite3 N/A N/A N/A N/A settings DATABASES N/A default N/A NAME :memory: N/A N/A N/A N/A pytest skip Do not test db reuse since database does not support it N/A create_empty_production_database N/A N/A N/A N/A N/A N/A drop_database name DB_NAME N/A N/A N/A get_db_engine postgresql_psycopg2 N/A N/A r N/A run_cmd psql postgres -c N/A CREATE DATABASE %s DB_NAME N/A N/A N/A CREATE DATABASE N/A force_text N/A r std_out N/A already exists N/A force_text N/A r std_err N/A N/A N/A N/A get_db_engine mysql N/A N/A r N/A run_mysql -e N/A CREATE DATABASE %s DB_NAME N/A N/A N/A N/A r status_code 0 N/A database exists N/A force_text N/A r std_out N/A database exists N/A force_text N/A r std_err N/A N/A N/A N/A get_db_engine sqlite3 N/A N/A N/A DB_NAME :memory: N/A N/A N/A AssertionError sqlite in-memory database must not be created! N/A N/A N/A N/A open DB_NAME a close N/A N/A N/A AssertionError N/A %s cannot be tested properly N/A get_db_engine N/A drop_database N/A N/A name suffix N/A TEST_DB_NAME None N/A N/A N/A N/A bool name N/A bool suffix name and suffix cannot be used together N/A suffix N/A N/A name N/A %s_%s N/A name suffix N/A N/A N/A get_db_engine postgresql_psycopg2 N/A N/A r N/A run_cmd psql postgres -c N/A DROP DATABASE %s name N/A N/A N/A DROP DATABASE N/A force_text N/A r std_out N/A does not exist N/A force_text N/A r std_err N/A N/A N/A N/A get_db_engine mysql N/A N/A r N/A run_mysql -e N/A DROP DATABASE %s name N/A N/A N/A database doesn't exist N/A force_text N/A r std_err N/A N/A r status_code 0 N/A N/A N/A N/A get_db_engine sqlite3 N/A N/A N/A name :memory: N/A N/A N/A AssertionError sqlite in-memory database cannot be dropped! N/A N/A N/A N/A os path exists name N/A N/A N/A N/A os unlink name N/A N/A N/A AssertionError N/A %s cannot be tested properly! N/A get_db_engine N/A db_exists N/A N/A db_suffix N/A None N/A N/A name TEST_DB_NAME N/A db_suffix N/A N/A name N/A %s_%s N/A name db_suffix N/A N/A N/A get_db_engine postgresql_psycopg2 N/A N/A r N/A run_cmd psql name -c SELECT 1 N/A N/A N/A r status_code 0 N/A N/A N/A get_db_engine mysql N/A N/A r N/A run_mysql name -e SELECT 1 N/A N/A N/A r status_code 0 N/A N/A N/A get_db_engine sqlite3 N/A N/A N/A TEST_DB_NAME :memory: N/A N/A N/A AssertionError sqlite in-memory database cannot be checked for existence! N/A N/A N/A N/A os path exists name N/A N/A AssertionError N/A %s cannot be tested properly! N/A get_db_engine N/A mark_database N/A N/A N/A N/A N/A N/A N/A get_db_engine postgresql_psycopg2 N/A N/A r N/A run_cmd psql TEST_DB_NAME -c CREATE TABLE mark_table(); N/A N/A N/A r status_code 0 N/A N/A N/A N/A get_db_engine mysql N/A N/A r N/A run_mysql TEST_DB_NAME -e CREATE TABLE mark_table(kaka int); N/A N/A N/A r status_code 0 N/A N/A N/A N/A get_db_engine sqlite3 N/A N/A N/A TEST_DB_NAME :memory: N/A N/A N/A AssertionError sqlite in-memory database cannot be marked! N/A conn N/A N/A sqlite3 connect TEST_DB_NAME N/A N/A N/A conn N/A N/A N/A N/A conn execute CREATE TABLE mark_table(kaka int); N/A N/A N/A N/A conn close N/A N/A N/A AssertionError N/A %s cannot be tested properly! N/A get_db_engine N/A mark_exists N/A N/A N/A N/A N/A N/A N/A get_db_engine postgresql_psycopg2 N/A N/A r N/A run_cmd psql TEST_DB_NAME -c SELECT 1 FROM mark_table N/A N/A bool N/A r std_out N/A N/A N/A get_db_engine mysql N/A N/A r N/A run_mysql TEST_DB_NAME -e SELECT 1 FROM mark_table N/A N/A N/A r status_code 0 N/A N/A N/A get_db_engine sqlite3 N/A N/A N/A TEST_DB_NAME :memory: N/A N/A N/A AssertionError sqlite in-memory database cannot be checked for mark! N/A conn N/A N/A sqlite3 connect TEST_DB_NAME N/A N/A N/A N/A N/A conn N/A N/A N/A N/A conn execute SELECT 1 FROM mark_table N/A True N/A N/A N/A N/A sqlite3 OperationalError N/A N/A False N/A N/A N/A N/A conn close N/A N/A AssertionError N/A %s cannot be tested properly! N/A get_db_engine N/A noop_transactions N/A N/A N/A N/A N/A Test whether transactions are disabled.

    Return True if transactions are disabled, False if they are
    enabled.
     N/A N/A hasattr connection in_atomic_block N/A N/A N/A connection in_atomic_block N/A N/A N/A N/A transaction commit_manually N/A N/A N/A N/A N/A Item objects create name transaction_noop_test N/A N/A N/A transaction rollback N/A N/A N/A item N/A N/A N/A Item objects get name transaction_noop_test N/A N/A N/A N/A Item DoesNotExist N/A N/A False N/A N/A N/A N/A item delete N/A True N/A