From: yayogev Date: Mon, 28 Aug 2017 11:05:15 +0000 (+0300) Subject: fix scan unit tests X-Git-Tag: opnfv-5.1.RC1~48 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F40389%2F1;p=calipso.git fix scan unit tests Change-Id: I319e6b99f0eaa0f36e569b05824b5359dc74a764 Signed-off-by: yayogev --- diff --git a/app/test/scan/test_scan.py b/app/test/scan/test_scan.py index a01083e..3b81ed3 100644 --- a/app/test/scan/test_scan.py +++ b/app/test/scan/test_scan.py @@ -11,6 +11,7 @@ import unittest from unittest.mock import MagicMock from discover.configuration import Configuration +from discover.fetchers.db.db_access import DbAccess from monitoring.setup.monitoring_setup_manager import MonitoringSetupManager from test.scan.config.test_config \ import MONGODB_CONFIG, ENV_CONFIG, COLLECTION_CONFIG @@ -42,5 +43,8 @@ class TestScan(unittest.TestCase): MonitoringSetupManager.server_setup = MagicMock() + DbAccess.get_neutron_db_name = MagicMock() + DbAccess.get_neutron_db_name.return_value = "neutron" + def setUp(self): self.configure_environment()