diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/test/scan/test_scan.py | 4 |
1 files changed, 4 insertions, 0 deletions
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() |