Fixed #125: SheerkaErrorManager

Fixed #135: Change services service priorities
Fixed #136: ErrorManager: Implement recognize_error
Fixed #137: BNFNodeParser : Error when parsing regex with sub parsers
Fixed #138: get_last_errors(): real errors sources are lost
Fixed #139: OneError return value removes the origin of the error
Fixed #140: Concept variables are not correctly handled when parsing sub expression
Fixed #143: Implement has_unknown_concepts()
This commit is contained in:
2021-10-28 14:04:41 +02:00
parent 48ab72fd9c
commit 87cab44fb8
56 changed files with 1391 additions and 1286 deletions
+18 -1
View File
@@ -1,8 +1,10 @@
import shutil
from os import path
from conftest import SHEERKA_TEST_FOLDER
from core.global_symbols import EVENT_ONTOLOGY_CREATED
from core.sheerka.Sheerka import Sheerka
from core.sheerka.SheerkaOntologyManager import SheerkaOntologyManager
from tests.BaseTest import BaseTest
@@ -45,3 +47,18 @@ class TestUsingFileBasedSheerka(BaseTest):
self.sheerka.push_ontology(self.context, ontology_name, cache_only=cache_only)
return TestUsingFileBasedSheerka.sheerka
@staticmethod
def commit(context):
sheerka = context.sheerka
event = context.event
sheerka.om.save_event(event)
if sheerka.om.is_dirty():
sheerka.om.commit(context)
@staticmethod
def reset_hard_test_env():
if path.exists(SHEERKA_TEST_FOLDER):
shutil.rmtree(SHEERKA_TEST_FOLDER)
TestUsingFileBasedSheerka.sheerka = None