Added first implementation of concepts ambiguity resolution + Jenkins file test

This commit is contained in:
2020-07-15 18:29:43 +02:00
parent b768eaa95d
commit e84b394da2
42 changed files with 1130 additions and 313 deletions
+3 -3
View File
@@ -81,7 +81,7 @@ class BaseTest:
@staticmethod
def retval(obj, who="who", status=True):
"""ret_val"""
return ReturnValueConcept.ret(who, status, obj)
return ReturnValueConcept(who, status, obj)
@staticmethod
def tretval(sheerka, obj, who="who"):
@@ -93,11 +93,11 @@ class BaseTest:
return sheerka.ret(who, True, obj)
@staticmethod
def pretval(concept, source=None, parser="parsers.name", who="some_name"):
def pretval(concept, source=None, parser="parsers.name", who="some_name", status=True):
"""ParserResult ret_val (p stands for ParserResult)"""
return ReturnValueConcept(
who,
True,
status,
ParserResultConcept(parser=parser,
source=source or concept.name,
value=concept,