aboutsummaryrefslogtreecommitdiffstats
path: root/python_moonclient/tests/unit_python/test_policies.py
diff options
context:
space:
mode:
authorAsteroide <thomas.duval@orange.com>2018-02-19 15:34:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-19 15:34:21 +0000
commitde90a15a11b5a9e9a9784ab6043e1c956d21ea0f (patch)
tree676f8748d54541623cb7dc07098e9c7170796085 /python_moonclient/tests/unit_python/test_policies.py
parente36a301b551e454ea8c28aa2beefd8f535d8f6fe (diff)
parent4bf344a003f550369511e5c3600b2600101cc8b7 (diff)
Merge "Use cliff for the moonclient cli"
Diffstat (limited to 'python_moonclient/tests/unit_python/test_policies.py')
-rw-r--r--python_moonclient/tests/unit_python/test_policies.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/python_moonclient/tests/unit_python/test_policies.py b/python_moonclient/tests/unit_python/test_policies.py
index 386c37af..9ab9003e 100644
--- a/python_moonclient/tests/unit_python/test_policies.py
+++ b/python_moonclient/tests/unit_python/test_policies.py
@@ -1,8 +1,12 @@
-from python_moonclient.policies import *
-from python_moonclient.models import *
+from python_moonclient.core.policies import *
+from python_moonclient.core.models import *
+from python_moonclient.core import policies
+from python_moonclient.core import models
def test_policies():
+ policies.init("consul", 8500)
+ models.init("consul", 8500)
check_policy()
policy_id = add_policy()
check_policy(policy_id)
@@ -71,7 +75,7 @@ def test_object_data():
object_data_id = add_object_data(policy_id=policy_id, category_id=object_cat_id)
check_object_data(policy_id=policy_id, data_id=object_data_id, category_id=object_cat_id)
delete_object_data(policy_id=policy_id, data_id=object_data_id, category_id=object_cat_id)
-
+ print('ok')
def test_action_data():
policy_id = add_policy()