Exemple #1
0
def tests():
    """ Launch tests. """
    local("rm -rf /tmp/appypi_tmp")
    remove_launchers()

    local("nosetests -v --with-coverage --cover-package appypi tests.test_ApplicationController tests.test_models tests.test_utils")
    local("echo 'y' | nosetests -v --with-coverage --cover-package appypi tests.test_manual:test_remove")
    local("echo 'n' | nosetests -v --with-coverage --cover-package appypi tests.test_manual:test_remove_not_confirmed")

    local("coverage html -d /tmp/coverage-appypi --omit='appypi/docopt.py'")
    local("coverage erase")
def teardown_appypi_dir():
    remove_launchers()
    if os.path.exists(settings.APPYPI_DIR):
        shutil.rmtree(settings.APPYPI_DIR, True)
def teardown_appypi_dir():
    """ Remove launchers and delete test appypi directory. """
    remove_launchers()
    if os.path.exists(settings.APPYPI_DIR):
        shutil.rmtree(settings.APPYPI_DIR, True)
Exemple #4
0
def destroy():
    """ Delete local appypi data. """
    local("rm -rf ~/.appypi")
    remove_launchers()