aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/tests/test_models.py
blob: 0da40ce5ddf0fdc103ccb86becff3dbaff9cb9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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)