Implemented some enhancement requests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import pytest
|
||||
from core.builtin_concepts import BuiltinConcepts
|
||||
from core.sheerka.services.SheerkaExecute import ParserInput
|
||||
from parsers.RuleParser import RuleParser, RuleNotFound
|
||||
from parsers.RuleParser import RuleParser, RuleNotFoundError
|
||||
|
||||
from tests.TestUsingMemoryBasedSheerka import TestUsingMemoryBasedSheerka
|
||||
|
||||
@@ -59,7 +59,7 @@ class TestRuleParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
assert not res.status
|
||||
assert sheerka.isinstance(error, BuiltinConcepts.ERROR)
|
||||
assert errors_causes == [RuleNotFound("999999")]
|
||||
assert errors_causes == [RuleNotFoundError("999999")]
|
||||
|
||||
def test_i_can_parse_rule(self):
|
||||
sheerka, context, parser = self.init_parser()
|
||||
|
||||
Reference in New Issue
Block a user