Fixed #43 : BnfNodeParser: I can recognize when multiple level of ISA
Fixed #44 : BnfNodeParser: I must simplify results when multiple levels of ISA Fixed #45 : Dynamic variables cannot be parsed at restart Fixed #46 : Concepts variables values are transformed into list by default Fixed #47 : SheerkaAdmin. Add min, max, mean time when restoring files
This commit is contained in:
@@ -120,6 +120,14 @@ class TestSheerkaUsingMemoryBasedSheerka(TestUsingMemoryBasedSheerka):
|
||||
assert new.get_value("a") == 10
|
||||
assert new.get_value("b") == "value"
|
||||
|
||||
def test_i_can_instantiate_concepts_when_variables_are_defined_in_constructor(self):
|
||||
sheerka, context, foo = self.init_test().with_concepts(
|
||||
Concept(name="foo", variables=[("x", "default value for x"), ("y", None)]),
|
||||
create_new=True).unpack()
|
||||
|
||||
new = sheerka.new(foo.key)
|
||||
assert new.values() == {"x": NotInit, "y": NotInit} # default values are not used ?
|
||||
|
||||
def test_i_can_instantiate_multiple_when_same_key(self):
|
||||
sheerka, context, *concepts = self.init_test().with_concepts(
|
||||
Concept("foo", body="foo1"),
|
||||
|
||||
Reference in New Issue
Block a user