From 70f5bd37480a6fc1edf025e5984eaf6dd42876e8 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 19 Feb 2015 10:17:42 -0500 Subject: [PATCH] Fixed the unit tests --- .../airtime_analyzer/tests/analyzer_pipeline_tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py b/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py index e5230448f..c157b203a 100644 --- a/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py +++ b/python_apps/airtime_analyzer/tests/analyzer_pipeline_tests.py @@ -1,4 +1,5 @@ from nose.tools import * +from ConfigParser import SafeConfigParser import os import shutil import multiprocessing @@ -21,8 +22,11 @@ def teardown(): def test_basic(): filename = os.path.basename(DEFAULT_AUDIO_FILE) q = multiprocessing.Queue() - cloud_storage_config_path = '/etc/airtime-saas/production/cloud_storage.conf' - cloud_storage_config = config_file.read_config_file(cloud_storage_config_path) + #cloud_storage_config_path = '/etc/airtime-saas/production/cloud_storage.conf' + #cloud_storage_config = config_file.read_config_file(cloud_storage_config_path) + cloud_storage_config = SafeConfigParser() + cloud_storage_config.add_section("current_backend") + cloud_storage_config.set("current_backend", "storage_backend", "file") file_prefix = u'' #This actually imports the file into the "./Test Artist" directory. AnalyzerPipeline.run_analysis(q, DEFAULT_AUDIO_FILE, u'.', filename, file_prefix, cloud_storage_config)