Added ModifyConcept function, and fixed 'isa' not working

This commit is contained in:
2020-02-20 11:30:53 +01:00
parent 87f232b527
commit 7cd94e888f
17 changed files with 750 additions and 228 deletions
+4
View File
@@ -198,6 +198,9 @@ def test_i_can_update_from():
id="123456"
).def_prop("a", "10").def_prop("b", None)
# make sure origin is preserved
setattr(template, "##origin##", "digest")
template.values[ConceptParts.BODY] = "value in body"
template.values[ConceptParts.WHERE] = "value in where"
template.values[ConceptParts.PRE] = "value in pre"
@@ -208,3 +211,4 @@ def test_i_can_update_from():
concept = Concept().update_from(template)
assert concept == template
assert getattr(concept, "##origin##") == "digest"