Ejemplo n.º 1
0
def update_bokchoy_db_cache():
    """
    Update and cache the MYSQL database for bokchoy testing:
    * Remove any previously cached database files
    * Apply migrations on a fresh db
    * Write the collective sha1 checksum for all of these files to disk

    WARNING: This will take several minutes.
    """
    print('Removing cached db files for bokchoy tests')
    remove_files_from_folder(BOKCHOY_DB_FILES, CACHE_FOLDER)
    reset_test_db(BOKCHOY_DB_FILES, update_cache_files=True)
    compute_fingerprint_and_write_to_disk(MIGRATION_OUTPUT_FILES, ALL_DB_FILES)
Ejemplo n.º 2
0
def update_bokchoy_db_cache():
    """
    Update and cache the MYSQL database for bokchoy testing:
    * Remove any previously cached database files
    * Apply migrations on a fresh db
    * Write the collective sha1 checksum for all of these files to disk

    WARNING: This will take several minutes.
    """
    print('Removing cached db files for bokchoy tests')
    remove_files_from_folder(BOKCHOY_DB_FILES, CACHE_FOLDER)
    reset_test_db(BOKCHOY_DB_FILES, update_cache_files=True)
    compute_fingerprint_and_write_to_disk(MIGRATION_OUTPUT_FILES, ALL_DB_FILES)