Added first implementation of concepts ambiguity resolution + Jenkins file test
This commit is contained in:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user