aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/tests/test_models.py
diff options
context:
space:
mode:
authorasteroide <thomas.duval@orange.com>2017-09-13 11:19:47 +0200
committerasteroide <thomas.duval@orange.com>2017-09-13 11:19:47 +0200
commit1f754ef804ffedaf1c222f9f51313b6afcbbec6e (patch)
tree489c8dafa509d3066608d2c3fc087a07d587ab27 /moonv4/tests/test_models.py
parent3595c59908df7c43fad4301545d3b9c455dffcc7 (diff)
Move test files from Interface dir to tests dir
Change-Id: Iaf697b15a8e51cd96a4a1b65d74483b7f3ac9cea
Diffstat (limited to 'moonv4/tests/test_models.py')
-rw-r--r--moonv4/tests/test_models.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/moonv4/tests/test_models.py b/moonv4/tests/test_models.py
new file mode 100644
index 00000000..0da40ce5
--- /dev/null
+++ b/moonv4/tests/test_models.py
@@ -0,0 +1,37 @@
+from utils.models import *
+
+
+def test_models():
+ check_model()
+ model_id = add_model()
+ check_model(model_id)
+ delete_model(model_id)
+
+
+def test_meta_data_subject():
+ category_id = add_subject_category()
+ check_subject_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_subject_category(category_id)
+
+
+def test_meta_data_object():
+ category_id = add_object_category()
+ check_object_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_object_category(category_id)
+
+
+def test_meta_data_action():
+ category_id = add_action_category()
+ check_action_category(category_id)
+ # TODO (asteroide): must implement the deletion of linked data
+ # delete_action_category(category_id)
+
+
+def test_meta_rule():
+ meta_rule_id, scat_id, ocat_id, acat_id = add_categories_and_meta_rule()
+ check_meta_rule(meta_rule_id, scat_id, ocat_id, acat_id)
+ delete_meta_rule(meta_rule_id)
+
+