def test_create_backup(capsys, database): version_time = None with database.snapshot() as snapshot: results = snapshot.execute_sql("SELECT CURRENT_TIMESTAMP()") version_time = list(results)[0][0] backup_sample.create_backup(INSTANCE_ID, DATABASE_ID, BACKUP_ID, version_time) out, _ = capsys.readouterr() assert BACKUP_ID in out
def test_create_backup(capsys, instance_id, sample_database): version_time = None with sample_database.snapshot() as snapshot: results = snapshot.execute_sql("SELECT CURRENT_TIMESTAMP()") version_time = list(results)[0][0] backup_sample.create_backup( instance_id, sample_database.database_id, BACKUP_ID, version_time, ) out, _ = capsys.readouterr() assert BACKUP_ID in out
def test_create_backup(capsys, database): backup_sample.create_backup(INSTANCE_ID, DATABASE_ID, BACKUP_ID) out, _ = capsys.readouterr() assert BACKUP_ID in out