Not initialiazed variables now returns BuiltinConcepts.NOT_INITIALIZED
This commit is contained in:
@@ -447,11 +447,11 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
# explicit validations of the compiled
|
||||
concept_foo = sequences[0][0].concept
|
||||
assert concept_foo.body is None
|
||||
assert concept_foo.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_foo.compiled == {ConceptParts.BODY: DoNotResolve("one two")}
|
||||
|
||||
concept_bar = sequences[1][0].concept
|
||||
assert concept_bar.body is None
|
||||
assert concept_bar.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_bar.compiled == {
|
||||
ConceptParts.BODY: concept_foo,
|
||||
"foo": concept_foo
|
||||
@@ -473,11 +473,11 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
# explicit validations of the compiled
|
||||
concept_foo = sequences[0][0].concept
|
||||
assert concept_foo.body is None
|
||||
assert concept_foo.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert len(concept_foo.compiled) == 0 # because there is a body defined in the metadata
|
||||
|
||||
concept_bar = sequences[1][0].concept
|
||||
assert concept_bar.body is None
|
||||
assert concept_bar.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_bar.compiled == {
|
||||
ConceptParts.BODY: concept_foo,
|
||||
"foo": concept_foo
|
||||
@@ -500,18 +500,18 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
# explicit validations of the compiled
|
||||
concept_foo = sequences[0][0].concept
|
||||
assert concept_foo.body is None
|
||||
assert concept_foo.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_foo.compiled == {ConceptParts.BODY: DoNotResolve("one two")}
|
||||
|
||||
concept_bar = sequences[1][0].concept
|
||||
assert concept_bar.body is None
|
||||
assert concept_bar.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_bar.compiled == {
|
||||
ConceptParts.BODY: concept_foo,
|
||||
"foo": concept_foo
|
||||
}
|
||||
|
||||
concept_baz = sequences[2][0].concept
|
||||
assert concept_baz.body is None
|
||||
assert concept_baz.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_baz.compiled == {
|
||||
ConceptParts.BODY: concept_bar,
|
||||
"bar": concept_bar,
|
||||
@@ -631,7 +631,7 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
# explicit validations of the compiled
|
||||
concept_foo = sequences[0].concept
|
||||
assert concept_foo.body is None
|
||||
assert concept_foo.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_foo.compiled == {'number': my_map["number"],
|
||||
'two': my_map["two"],
|
||||
ConceptParts.BODY: DoNotResolve(value='twenty two')}
|
||||
@@ -642,7 +642,7 @@ class TestBnfNodeParser(TestUsingMemoryBasedSheerka):
|
||||
|
||||
# explicit validations of the compiled
|
||||
concept_foo = sequences[0].concept
|
||||
assert concept_foo.body is None
|
||||
assert concept_foo.body == BuiltinConcepts.NOT_INITIALIZED
|
||||
assert concept_foo.compiled == {'number': my_map["number"],
|
||||
'one': my_map["one"],
|
||||
ConceptParts.BODY: DoNotResolve(value='twenty one')}
|
||||
|
||||
Reference in New Issue
Block a user