feat: close builder mutation and roundtrip evidence gaps
This commit is contained in:
@@ -4,6 +4,8 @@ import FreeCAD as App
|
||||
import Part
|
||||
import Sketcher
|
||||
|
||||
from freecad_mutation_evidence import capture_property_mutation
|
||||
|
||||
|
||||
COMMIT = "0108fd4b4850cc46e625b60e53cea7a7bbe69f8d"
|
||||
|
||||
@@ -47,7 +49,8 @@ def run_revolution():
|
||||
feature.ReferenceAxis = (sketch, ["H_Axis"])
|
||||
feature.Angle = 360
|
||||
document.recompute()
|
||||
return {"id": "partdesign-revolution", "operation": "revolution", **status(feature)}
|
||||
mutation = capture_property_mutation(document, feature, "Angle", 270.0)
|
||||
return {"id": "partdesign-revolution", "operation": "revolution", "mutation": mutation, **status(feature)}
|
||||
except Exception as error:
|
||||
return {"id": "partdesign-revolution", "operation": "revolution", "passed": False, "error": str(error)}
|
||||
finally:
|
||||
@@ -74,7 +77,8 @@ def run_groove():
|
||||
feature.ReferenceAxis = (sketch, ["H_Axis"])
|
||||
feature.Angle = 180
|
||||
document.recompute()
|
||||
return {"id": "partdesign-groove", "operation": "groove", **status(feature)}
|
||||
mutation = capture_property_mutation(document, feature, "Angle", 120.0)
|
||||
return {"id": "partdesign-groove", "operation": "groove", "mutation": mutation, **status(feature)}
|
||||
except Exception as error:
|
||||
return {"id": "partdesign-groove", "operation": "groove", "passed": False, "error": str(error)}
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user