Fixed the airtime_analyzer unit tests
This commit is contained in:
parent
31ea92d983
commit
37f9f273c7
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue