Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr Call NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str Call AttributeLoad Str attr NameLoad If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad Str attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad NameLoad If CompareEq NameLoad Str body Expr Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Assign NameStore UnaryOpNot Call NameLoad NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad Str Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad keyword NameLoad handlers ExceptHandler body Raise Call NameLoad Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Index Num Slice Num Assign NameStore Call NameLoad GeneratorExp TupleLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Call NameLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Slice Num comprehension NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr BinOpMult Str Num Index Num attr Str Slice Num Num Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad Str attr NameLoad orelse Print Call NameLoad Call AttributeLoad Str attr NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareIn Str NameLoad body Print Str If CompareIn Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad If CompareIn Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareIn Str NameLoad body Print Str If CompareIn Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad If CompareIn Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str With Call NameLoad Str body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call AttributeLoad Str attr NameLoad NameLoad Str body Expr Str If CompareEq NameLoad Str body AugAssignAdd NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad With Call NameLoad keyword NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Print Call NameLoad Str orelse Print Call NameLoad Str decorator_list
N/A N/A Fabric commands that are run locally. N/A os coverage.misc CoverageException fabric.api lcd local settings fabric.colors _wrap_with settings DATABASES MEDIA_ROOT PROJECT_ROOT TEST_APPS fabfile fab_settings N/A GREEN_BG N/A _wrap_with 42 N/A RED_BG N/A _wrap_with 41 _get_test_apps N/A N/A all N/A 1 N/A N/A Returns a list of apps that should be tested.

    :param all: If '1', the slow ``integration_tests`` app will be included.

     N/A apps TEST_APPS N/A N/A all 1 N/A N/A N/A N/A apps append integration_tests N/A apps N/A _get_test_command N/A N/A apps options all N/A None None 1 N/A N/A Returns the command that runs all our tests.

    :param apps: A comma separated list of apps that should be tested. If
      ``None`` we will test all apps.
    :param options: Extra options that should be passed to the test command.
    :param all: If '1' we will also run the slow ``integration_tests`` app.

     N/A N/A apps None N/A N/A apps N/A N/A join N/A _get_test_apps all all N/A N/A apps N/A N/A apps split , N/A command N/A ./manage.py test -v 2 --traceback --failfast --settings=settings.test_settings %s N/A N/A join apps N/A options N/A N/A command N/A N/A  {0} format options N/A command N/A check N/A N/A N/A N/A N/A Checks if the current state can be pushed. N/A N/A flake8 N/A N/A test N/A N/A coverage 0 N/A coverage N/A N/A html N/A 1 N/A N/A Runs coverage with html output or returns percentage of coverage. N/A apps N/A _get_test_apps N/A command N/A _get_test_command apps N/A N/A , join apps N/A N/A local N/A coverage run --source=%s %s N/A N/A N/A , join apps command N/A N/A html 1 N/A N/A N/A local coverage html N/A N/A local xdg-open htmlcov/index.html N/A _coverage N/A N/A html N/A 1 N/A N/A Runs coverage with html output or returns percentage of coverage::

        fab coverage:1      # will create html output (default)
        fab coverage:0      # will return percentage

     N/A not_html N/A N/A int html N/A settings_file N/A N/A not_html settings.coverage_nohtml_settings myprojcet.settings.coverage_settings N/A N/A N/A results N/A local N/A N/A ./manage.py test_coverage --settings={0} {1} format settings_file N/A N/A join TEST_APPS capture not_html N/A N/A N/A N/A N/A CoverageException N/A RED_BG You have failing tests, run 'fab test' for more details N/A not_html N/A N/A global_percentage N/A int N/A N/A N/A N/A N/A N/A N/A results split N/A -3 split N/A -1 N/A -1 N/A files_percents N/A dict N/A N/A N/A N/A N/A line split N/A 0 N/A int N/A N/A N/A N/A line split N/A 3 N/A -1 N/A line N/A N/A N/A N/A N/A N/A results split N/A - 45 N/A 1 split N/A 1 -1 N/A errors N/A N/A N/A name percentage N/A N/A files_percents iteritems N/A N/A N/A percentage 80 N/A N/A N/A N/A errors append N/A RED_BG N/A N/A The file {0} is only covered to {1}% format name percentage N/A errors N/A N/A N/A CoverageException N/A N/A 
There isn't enought coverage:
{0} format N/A N/A join errors N/A N/A N/A GREEN_BG N/A N/A {0}% of the code is covered format global_percentage N/A N/A N/A local N/A N/A {0} coverage_html/index.html format N/A fab_settings WWW_OPEN N/A delete_db N/A N/A N/A N/A N/A Deletes all data in the database. N/A N/A local  ./manage.py reset_db --router=default --noinput N/A dumpdata N/A N/A N/A N/A N/A Dumps everything.

    Remember to add new dumpdata commands for new apps here so that you always
    get a full initial dump when running this task.

     N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural auth --exclude auth.permission > _global/fixtures/bootstrap_auth.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural registration > _global/fixtures/bootstrap_registration.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural sites > _global/fixtures/bootstrap_sites.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural cms.placeholder > _global/fixtures/bootstrap_cms.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural cms --exclude cms.placeholder > _global/fixtures/bootstrap_cms2.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural text > _global/fixtures/bootstrap_cms_plugins_text.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural cmsplugin_blog > _global/fixtures/bootstrap_cmsplugin_blog.json N/A N/A local python2.7 ./manage.py dumpdata --indent 4 --natural tagging > _global/fixtures/bootstrap_tagging.json N/A export_db N/A N/A N/A N/A N/A Exports the database. N/A db_engine N/A N/A DATABASES N/A default N/A ENGINE N/A db_user N/A N/A DATABASES N/A default N/A USER N/A db_name N/A N/A DATABASES N/A default N/A NAME N/A db_password N/A N/A DATABASES N/A default N/A PASSWORD N/A N/A sqlite db_engine N/A N/A You are using sqlite3, no need to export anything. N/A N/A postgre db_engine N/A N/A N/A local N/A N/A pg_dump -c -U {0} > {1}_psql.sql format db_user db_name N/A N/A mysql db_engine N/A N/A N/A local N/A N/A mysqldump -u{0} -p {1} {2} > {2}_mysql.sql format db_user db_password db_name N/A flake8 N/A N/A N/A N/A N/A Searches for PEP8 errors in all project files. N/A N/A local flake8 --statistics . N/A import_db N/A N/A N/A N/A N/A Imports the database. N/A db_engine N/A N/A DATABASES N/A default N/A ENGINE N/A db_user N/A N/A DATABASES N/A default N/A USER N/A db_name N/A N/A DATABASES N/A default N/A NAME N/A db_password N/A N/A DATABASES N/A default N/A PASSWORD N/A N/A sqlite db_engine N/A N/A You are using sqlite3, no need to import anything. N/A N/A postgre db_engine N/A N/A N/A local N/A N/A psql -U {0} < {1}_psql.sql format db_user db_name N/A N/A mysql db_engine N/A N/A N/A local N/A N/A mysql -u{0} -p{1} {2} < {2}_mysql.sql format db_user db_password db_name N/A push N/A N/A N/A N/A N/A git push after checking tests and syntax N/A N/A check N/A N/A local git push N/A rebuild N/A N/A N/A N/A N/A Deletes the database and recreates the database.

    Does not work with PostgreSQL. TODO: Create a new manage.py command
    that deletes all tables instead of the whole database.
     N/A N/A rebuild_db N/A N/A rebuild_media N/A N/A local ./manage.py collectstatic --noinput N/A rebuild_db N/A N/A N/A N/A N/A Syncdb localhost or remote server. N/A N/A delete_db N/A N/A local python2.7 manage.py syncdb --all --noinput N/A N/A local python2.7 manage.py migrate --fake N/A N/A local python2.7 manage.py loaddata bootstrap_auth.json N/A N/A local python2.7 manage.py loaddata bootstrap_registration.json N/A N/A local python2.7 manage.py loaddata bootstrap_sites.json N/A N/A local python2.7 manage.py loaddata bootstrap_cms.json N/A N/A local python2.7 manage.py loaddata bootstrap_cms2.json N/A N/A local python2.7 manage.py loaddata bootstrap_cms_plugins_text.json N/A N/A local python2.7 manage.py loaddata bootstrap_cmsplugin_blog.json N/A N/A local python2.7 manage.py loaddata bootstrap_tagging.json N/A N/A local python2.7 manage.py loaddata bootstrap.json N/A N/A local python2.7 manage.py loaddata bootstrap.json N/A rebuild_media N/A N/A N/A N/A N/A Copies media fixtures into your media_root. N/A N/A local N/A rm -rf %s MEDIA_ROOT N/A media_fixtures_path N/A N/A N/A os path join PROJECT_ROOT test_media/fixtures/media/ N/A N/A local N/A mkdir -p %s media_fixtures_path N/A N/A local N/A cp -rf %s %s N/A media_fixtures_path MEDIA_ROOT N/A replace_media N/A N/A N/A N/A N/A Deletes your current media folder and unpacks the downloaded one.

    ATTENTION: All your current media files will be lost!
    You can download the latest media via ``fab run_download_media``.
     N/A N/A lcd ../../ N/A N/A N/A local rm -rf media N/A N/A local mkdir media N/A N/A local N/A N/A tar -C ./media -xvf {0}_media.tar.bz2 format N/A fab_settings PROJECT_NAME N/A test N/A N/A apps options all N/A N/A N/A , join TEST_APPS None 1 N/A N/A Runs manage.py tests::

        $ fab test                          # will run all unit tests
        $ fab test:app1                     # will run tests only for app1

     N/A N/A all 1 N/A N/A apps ,integration_tests N/A command N/A _get_test_command apps apps options options all all N/A N/A settings warn_only True N/A N/A result N/A local command capture False N/A N/A result failed N/A N/A N/A RED_BG Some tests failed N/A N/A N/A GREEN_BG All tests passed N/A