Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num TryExcept body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str TupleLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str TupleLoad Str ImportFrom alias alias alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign TupleStore NameStore NameStore NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr CompareEq NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ print_function N/A os N/A shutil N/A unittest N/A subprocess N/A shlex N/A sqlite3 run_cmd N/A N/A cmd N/A N/A N/A Run a command and return a tuple with (stdout, stderr, exit_code) N/A process N/A N/A subprocess Popen N/A N/A shlex split cmd stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A stdout stderr N/A N/A process communicate N/A N/A stdout stderr N/A N/A process wait N/A TestMigrate N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A os chdir N/A N/A N/A N/A os path split N/A N/A N/A os path abspath __file__ N/A 0 N/A N/A N/A N/A N/A os remove app1.db N/A N/A N/A os remove app2.db N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A N/A shutil rmtree migrations N/A N/A N/A OSError N/A N/A N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A N/A os remove app1.db N/A N/A N/A os remove app2.db N/A N/A N/A OSError N/A N/A N/A N/A N/A N/A N/A shutil rmtree migrations N/A N/A N/A OSError N/A N/A N/A test_multidb_migrate_upgrade N/A N/A self N/A N/A N/A N/A o e s N/A run_cmd python app_multidb.py db init --multidb N/A N/A N/A self assertTrue N/A s 0 N/A N/A o e s N/A run_cmd python app_multidb.py db migrate N/A N/A N/A self assertTrue N/A s 0 N/A N/A o e s N/A run_cmd python app_multidb.py db upgrade N/A N/A N/A self assertTrue N/A s 0 N/A conn1 N/A N/A sqlite3 connect app1.db N/A c N/A N/A conn1 cursor N/A N/A N/A c execute select name from sqlite_master N/A tables N/A N/A c fetchall N/A N/A N/A conn1 close N/A N/A N/A self assertEqual tables N/A N/A alembic_version N/A user N/A conn2 N/A N/A sqlite3 connect app2.db N/A c N/A N/A conn2 cursor N/A N/A N/A c execute select name from sqlite_master N/A tables N/A N/A c fetchall N/A N/A N/A conn2 close N/A N/A N/A self assertEqual tables N/A N/A alembic_version N/A group app_multidb db User Group N/A N/A N/A N/A db session add N/A User name test N/A N/A N/A N/A db session add N/A Group name group N/A N/A N/A N/A db session commit N/A N/A o e s N/A run_cmd python app_multidb.py db downgrade N/A N/A N/A self assertTrue N/A s 0 N/A conn1 N/A N/A sqlite3 connect app1.db N/A c N/A N/A conn1 cursor N/A N/A N/A c execute select name from sqlite_master N/A tables N/A N/A c fetchall N/A N/A N/A conn1 close N/A N/A N/A self assertEqual tables N/A N/A alembic_version N/A conn2 N/A N/A sqlite3 connect app2.db N/A c N/A N/A conn2 cursor N/A N/A N/A c execute select name from sqlite_master N/A tables N/A N/A c fetchall N/A N/A N/A conn2 close N/A N/A N/A self assertEqual tables N/A N/A alembic_version N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main