aboutsummaryrefslogtreecommitdiffstats
path: root/python_moondb/tests/unit_python
diff options
context:
space:
mode:
Diffstat (limited to 'python_moondb/tests/unit_python')
-rw-r--r--python_moondb/tests/unit_python/conftest.py2
-rw-r--r--python_moondb/tests/unit_python/test_policies.py6
2 files changed, 4 insertions, 4 deletions
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']: