diff options
author | yayogev <yaronyogev@gmail.com> | 2017-08-28 14:05:15 +0300 |
---|---|---|
committer | yayogev <yaronyogev@gmail.com> | 2017-08-28 14:05:15 +0300 |
commit | 8bf7b48568df4025cf24bd1dacf6dd8ac3b3532c (patch) | |
tree | 4561ce622b3456084f29b0950e2bcb02e3bce31f /app/test | |
parent | f177fd1f19170d544421038f34c8ad8e7e23b607 (diff) |
fix scan unit tests
Change-Id: I319e6b99f0eaa0f36e569b05824b5359dc74a764
Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/test')
-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() |