Implemented SheerkaOntology
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user