Implemented SheerkaOntology

This commit is contained in:
2021-01-11 15:36:03 +01:00
parent e3c2adb533
commit e26c83a825
119 changed files with 6876 additions and 2002 deletions
+10 -2
View File
@@ -1,9 +1,17 @@
from core.builtin_concepts_ids import BuiltinConcepts
from tests.TestUsingMemoryBasedSheerka import TestUsingMemoryBasedSheerka
class TestSheerkaAdmin(TestUsingMemoryBasedSheerka):
def test_i_can_get_last_ret(self):
pass
def test_i_can_get_concepts(self):
sheerka = self.get_sheerka(cache_only=False, singleton=False)
res = sheerka.concepts()
concepts = list(res.body)
assert sheerka.isinstance(res, BuiltinConcepts.TO_LIST)
assert concepts[0] == sheerka
assert concepts[1].id == "2"
# def test_i_can_get_last_error_ret(self):
# sheerka, context = self.init_concepts()