From 37f9f273c7c287f144984aff6fdd15ce6909385c Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Tue, 24 Feb 2015 17:03:38 -0500 Subject: [PATCH] Fixed the airtime_analyzer unit tests --- .../tests/cloud_storage_uploader_tests.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py b/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py index 44fa8e414..2854943ef 100644 --- a/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py +++ b/python_apps/airtime_analyzer/tests/cloud_storage_uploader_tests.py @@ -1,4 +1,5 @@ from nose.tools import * +from ConfigParser import SafeConfigParser from airtime_analyzer.cloud_storage_uploader import CloudStorageUploader from airtime_analyzer.airtime_analyzer import AirtimeAnalyzerServer from airtime_analyzer import config_file @@ -10,7 +11,8 @@ def teardown(): pass def test_analyze(): - 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") cl = CloudStorageUploader(cloud_storage_config) - cl._storage_backend = "file" \ No newline at end of file