def test_tasks(): from clldfabric.tasks import ( init, deploy, start, stop, maintenance, cache, uncache, run_script, create_downloads, copy_files, uninstall, ) init('apics') deploy('test') stop('test') start('test') maintenance('test') cache() uncache() run_script('test', 'script') create_downloads('test') copy_files('test') uninstall('test')
def test_deploy(): from clldfabric.util import deploy, copy_files from clldfabric.config import Config app = Config()['testapp'] assert app.src deploy(app, 'test', with_files=False) deploy(app, 'test', with_alembic=True, with_files=False) deploy(app, 'production', with_files=False) copy_files(app)