Fixed #72 : Exception when get_results(id=10)

Fixed #74 : Keyword parameters are no longer recognized when a concept that redefines equality is created
Fixed #118 : RecursionError: maximum recursion depth exceeded
Fixed #119 : PreventCircularReferenceEvaluator
Fixed #121 : Plural are not updated when new elements are added
Fixed #123 : BaseCache : Values in cache can be evicted before being committed
Fixed #105 : TOO_MANY_ERROR is not the relevant error when results are filtered
This commit is contained in:
2021-09-09 10:57:01 +02:00
parent 54e5681c5a
commit 945807b375
36 changed files with 503 additions and 98 deletions
+6 -5
View File
@@ -8,7 +8,7 @@ from evaluators.MutipleSameSuccessEvaluator import MultipleSameSuccessEvaluator
from evaluators.OneSuccessEvaluator import OneSuccessEvaluator
from evaluators.PythonEvaluator import PythonEvalError
from tests.TestUsingMemoryBasedSheerka import TestUsingMemoryBasedSheerka
from tests.parsers.parsers_utils import CMV, CC, compare_with_test_object, CB
from tests.parsers.parsers_utils import CB, CC, CMV, compare_with_test_object
class TestSheerkaNonRegMemory(TestUsingMemoryBasedSheerka):
@@ -684,10 +684,12 @@ as:
assert res[0].body == 22
res = sheerka.evaluate_user_input("twenty three")
assert sheerka.has_error(context, res, __type=BuiltinConcepts.CONDITION_FAILED)
assert len(res) == 1
assert not res[0].status
res = sheerka.evaluate_user_input("eval twenty three")
assert sheerka.has_error(context, res, __type=BuiltinConcepts.CONDITION_FAILED)
assert len(res) == 1
assert not res[0].status
def test_i_can_manage_some_type_of_infinite_recursion(self):
sheerka = self.get_sheerka()
@@ -1416,10 +1418,9 @@ as:
"def concept red",
"global_truth(set_attr(foo, color, red))"
]
sheerka = self.init_scenario(init)
res = sheerka.evaluate_user_input("inspect(foo)")
assert len(res) == 1
assert res[0].status