Fixed #61 : SheerkaDebugManager: Add get_value()

Fixed #60 : Hash error when ReturnValue is a list of list
Fixed #59 : Implement smart_get()
Fixed #58 : SheerkaPromptCompleter: Cannot parse concept token
Fixed #57 : SheerkaPrompt: Add concept autocompletion
Fixed #56 : automatically backup command
Fixed #54 : I can record execution status
Fixed #53 : ConceptManager: modify_concept fails
This commit is contained in:
2021-04-09 15:47:32 +02:00
parent 6cda2686fb
commit dd3d8f4abe
37 changed files with 1055 additions and 191 deletions
+13
View File
@@ -430,6 +430,19 @@ def test_i_can_deep_copy_a_custom_type():
assert core.utils.sheerka_deepcopy(Removed) is Removed
def test_i_can_deep_copy_concepts_than_look_the_same():
foo = Concept("foo")
foo2 = Concept().update_from(foo)
foo2.set_value("prop_name", "prop_value")
assert foo != foo2
copied_foo = core.utils.sheerka_deepcopy(foo)
copied_foo2 = core.utils.sheerka_deepcopy(foo2)
assert copied_foo != copied_foo2
assert len({copied_foo, copied_foo2}) == 2
@pytest.mark.parametrize("expression1, expression2, expected", [
("foo bar baz", "foo bar baz", True),
("foo()", " foo ( ) ", True),