From 7ae1c898733113f5d5ef0dc247ebc382fbac497a Mon Sep 17 00:00:00 2001 From: WuKong Date: Sun, 24 Dec 2017 10:47:40 +0100 Subject: fix a moon_db error Change-Id: Ibb723412ecd1ea8ac23621f91baeaa0931db8963 Signed-off-by: WuKong --- python_moondb/tests/unit_python/conftest.py | 2 +- python_moondb/tests/unit_python/test_policies.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'python_moondb/tests/unit_python') diff --git a/python_moondb/tests/unit_python/conftest.py b/python_moondb/tests/unit_python/conftest.py index c2e5e579..a1057907 100644 --- a/python_moondb/tests/unit_python/conftest.py +++ b/python_moondb/tests/unit_python/conftest.py @@ -136,7 +136,7 @@ def set_consul_and_db(monkeypatch): mock_components.register_components(m) mock_keystone.register_keystone(m) - from moon_db.db_manager import init_engine, main + from python_moondb.db_manager import init_engine, main engine = init_engine() main("upgrade", logging.getLogger("db_manager"), engine) yield m diff --git a/python_moondb/tests/unit_python/test_policies.py b/python_moondb/tests/unit_python/test_policies.py index 3bd1360e..2d654660 100644 --- a/python_moondb/tests/unit_python/test_policies.py +++ b/python_moondb/tests/unit_python/test_policies.py @@ -5,12 +5,12 @@ def get_policies(): - from moon_db.core import PolicyManager + from python_moondb.core import PolicyManager return PolicyManager.get_policies("admin") def add_policies(value=None): - from moon_db.core import PolicyManager + from python_moondb.core import PolicyManager if not value: value = { "name": "test_policiy", @@ -22,7 +22,7 @@ def add_policies(value=None): def delete_policies(uuid=None, name=None): - from moon_db.core import PolicyManager + from python_moondb.core import PolicyManager if not uuid: for policy_id, policy_value in get_policies(): if name == policy_value['name']: -- cgit 1.2.3-korg