Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A __future__ unicode_literals N/A os N/A sys N/A unittest N/A tempfile N/A shutil N/A textwrap N/A sqlite3 N/A StringIO billy.scripts initializedb TestInitializedb N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self temp_dir N/A N/A tempfile mkdtemp N/A tearDown N/A N/A self N/A N/A N/A N/A N/A shutil rmtree N/A self temp_dir N/A test_usage N/A N/A self N/A N/A N/A filename /path/to/initializedb N/A old_stdout N/A sys stdout N/A usage_out N/A N/A StringIO StringIO N/A N/A sys stdout usage_out N/A N/A N/A N/A N/A self assertRaises SystemExit N/A N/A N/A N/A initializedb main N/A filename N/A N/A N/A sys stdout old_stdout N/A expected N/A N/A textwrap dedent         usage: initializedb <config_uri> [alembic_uri]
        (example: "initializedb development.ini alembic.ini")
         N/A N/A N/A self assertMultiLineEqual N/A N/A usage_out getvalue expected N/A test_main N/A N/A self N/A N/A N/A cfg_path N/A N/A N/A os path join N/A self temp_dir config.ini N/A N/A open cfg_path wt f N/A N/A N/A N/A f write N/A N/A textwrap dedent             [app:main]
            use = egg:billy

            sqlalchemy.url = sqlite:///%(here)s/billy.sqlite
             N/A alembic_path N/A N/A N/A os path join N/A self temp_dir alembic.ini N/A N/A open alembic_path wt f N/A N/A N/A N/A f write N/A N/A textwrap dedent             [alembic]
            script_location = alembic
            sqlalchemy.url = sqlite:///%(here)s/billy.sqlite

            [loggers]
            keys = root

            [handlers]
            keys =

            [formatters]
            keys =

            [logger_root]
            level = WARN
            qualname =
            handlers =

             N/A N/A N/A initializedb main N/A N/A initializedb __file__ cfg_path alembic_path N/A sqlite_path N/A N/A N/A os path join N/A self temp_dir billy.sqlite N/A N/A N/A self assertTrue N/A N/A N/A os path exists sqlite_path N/A conn N/A N/A sqlite3 connect sqlite_path N/A cursor N/A N/A conn cursor N/A N/A N/A cursor execute SELECT name FROM sqlite_master WHERE type='table'; N/A tables N/A N/A row N/A 0 N/A row N/A N/A cursor fetchall N/A N/A N/A self assertEqual N/A set tables N/A set N/A company customer plan subscription transaction transaction_event transaction_failure customer_invoice subscription_invoice invoice item adjustment alembic_version N/A N/A N/A cursor execute SELECT * FROM alembic_version; N/A version N/A N/A N/A cursor fetchone N/A 0 N/A N/A N/A self assertNotEqual version None N/A N/A