Tests

Data models

Annotation

class src.tests.annotation.AnnotationTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_annotation_date()[source]
test_annotation_label_type()[source]
test_annotation_label_uris()[source]
test_annotation_labels()[source]
test_annotation_model()[source]
test_annotation_subquery()[source]
test_annotation_uri()[source]
test_annotation_user()[source]
test_from_sparql()[source]

Article

class src.tests.article.ArticleTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp() None[source]

Hook method for setting up the test fixture before exercising it.

test_formatted_article()[source]
test_uri()[source]

Decision

class src.tests.decision.DecisionTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_article_list_empty()[source]
test_article_list_filled()[source]
test_decision_has_annotations()[source]
test_from_sparql_exists()[source]
test_from_sparql_not_exists()[source]
test_insert_query_model()[source]
test_insert_query_user()[source]
test_last_human_annotation()[source]
test_train_record_no_decision_info()[source]

Label

class src.tests.label.LabelTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_label_score_init()[source]
test_label_subquery()[source]

Model

class src.tests.model.ModelTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_date()[source]
test_subquery()[source]
test_uri()[source]

Taxonomy

class src.tests.taxonomy.TaxonomyTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_taxonomy_children()[source]
test_taxonomy_find()[source]
test_taxonomy_find_not_exist()[source]
test_taxonomy_find_unreachable_with_max_depth()[source]
test_taxonomy_find_with_max_depth()[source]
test_taxonomy_from_dict()[source]
test_taxonomy_get_labels()[source]
test_taxonomy_get_labels_with_max_depth()[source]
test_taxonomy_get_labels_with_max_depth_and_level()[source]
test_taxonomy_label()[source]
test_taxonomy_label2uri()[source]
test_taxonomy_level()[source]
test_taxonomy_level_specific_labels()[source]
test_taxonomy_remap_tree()[source]
test_taxonomy_todict_no_children()[source]
test_taxonomy_todict_with_children()[source]
test_taxonomy_todict_with_children_and_max_depth()[source]
test_taxonomy_uri()[source]
test_taxonomy_uri2label()[source]

User

class src.tests.user.UserTests(methodName='runTest')[source]

Bases: TestCase

_classSetupFailed = False
_class_cleanups = []
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_repr()[source]
test_user_uri()[source]