Public Member Functions | |
def | setUp (self) |
def | tearDown (self) |
def | test_circular_array (self) |
def | test_clone (self) |
def | test_copy (self) |
def | test_downgrade (self) |
def | test_draft_to_drawing (self) |
def | test_draft_to_sketch (self) |
def | test_extend (self) |
def | test_join (self) |
def | test_mirror (self) |
def | test_move (self) |
def | test_offset_closed (self) |
def | test_offset_open (self) |
def | test_path_array (self) |
def | test_point_array (self) |
def | test_polar_array (self) |
def | test_rectangular_array (self) |
def | test_rotate (self) |
def | test_scale_part_feature_arcs (self) |
def | test_scale_part_feature_lines (self) |
def | test_scale_rectangle (self) |
def | test_scale_spline (self) |
def | test_scale_wire (self) |
def | test_shape_2d_view (self) |
def | test_split (self) |
def | test_stretch (self) |
def | test_trim (self) |
def | test_upgrade (self) |
def | test_wire_to_bspline (self) |
Public Attributes | |
doc | |
doc_name | |
Test Draft modification tools.
def drafttests.test_modification.DraftModification.setUp | ( | self | ) |
Set up a new document to hold the tests. This is executed before every test, so we create a document to hold the objects.
def drafttests.test_modification.DraftModification.tearDown | ( | self | ) |
Finish the test. This is executed after each test, so we close the document.
References drafttests.test_airfoildat.DraftAirfoilDAT.doc_name, drafttests.test_dwg.DraftDWG.doc_name, drafttests.test_dxf.DraftDXF.doc_name, drafttests.test_modification.DraftModification.doc_name, drafttests.test_oca.DraftOCA.doc_name, drafttests.test_pivy.DraftPivy.doc_name, and drafttests.test_svg.DraftSVG.doc_name.
Referenced by PathTests.TestPathHelix.TestPathHelix.test03(), and PathTests.TestPathHelix.TestPathHelix.test04().
def drafttests.test_modification.DraftModification.test_circular_array | ( | self | ) |
Create a rectangle, and a circular array.
def drafttests.test_modification.DraftModification.test_clone | ( | self | ) |
Create a box, then create a clone of it. Test for a bug introduced by changes in attachment code.
def drafttests.test_modification.DraftModification.test_copy | ( | self | ) |
Create a line, then copy and move it.
def drafttests.test_modification.DraftModification.test_downgrade | ( | self | ) |
Downgrade a closed Draft Wire into three simple Part Edges.
def drafttests.test_modification.DraftModification.test_draft_to_drawing | ( | self | ) |
Create a solid, and then a projected view in a Drawing page.
def drafttests.test_modification.DraftModification.test_draft_to_sketch | ( | self | ) |
Convert a Draft object to a Sketch and back.
def drafttests.test_modification.DraftModification.test_extend | ( | self | ) |
Extend a line. NOT IMPLEMENTED.
def drafttests.test_modification.DraftModification.test_join | ( | self | ) |
Join two lines into a single Draft Wire.
def drafttests.test_modification.DraftModification.test_mirror | ( | self | ) |
Create a rectangle, then a mirrored shape.
def drafttests.test_modification.DraftModification.test_move | ( | self | ) |
Create a line and move it.
def drafttests.test_modification.DraftModification.test_offset_closed | ( | self | ) |
Create a rectangle, then produce an offset copy.
def drafttests.test_modification.DraftModification.test_offset_open | ( | self | ) |
Create a wire, then produce an offset copy.
def drafttests.test_modification.DraftModification.test_path_array | ( | self | ) |
Create a wire, a polygon, and a path array.
def drafttests.test_modification.DraftModification.test_point_array | ( | self | ) |
Create a polygon, various point, and a point array.
def drafttests.test_modification.DraftModification.test_polar_array | ( | self | ) |
Create a rectangle, and a polar array.
def drafttests.test_modification.DraftModification.test_rectangular_array | ( | self | ) |
Create a rectangle, and a rectangular array.
def drafttests.test_modification.DraftModification.test_rotate | ( | self | ) |
Create a line, then rotate it.
def drafttests.test_modification.DraftModification.test_scale_part_feature_arcs | ( | self | ) |
Create and scale a part feature (arcs).
def drafttests.test_modification.DraftModification.test_scale_part_feature_lines | ( | self | ) |
Create and scale a part feature (lines).
def drafttests.test_modification.DraftModification.test_scale_rectangle | ( | self | ) |
Create and scale a rectangle.
References Mod.Test.Document.DocumentExpressionCases.assertAlmostEqual().
def drafttests.test_modification.DraftModification.test_scale_spline | ( | self | ) |
Create and scale a spline.
def drafttests.test_modification.DraftModification.test_scale_wire | ( | self | ) |
Create and scale a wire.
def drafttests.test_modification.DraftModification.test_shape_2d_view | ( | self | ) |
Create a prism and then a 2D projection of it.
def drafttests.test_modification.DraftModification.test_split | ( | self | ) |
Split a Draft Wire into two Draft Wires.
def drafttests.test_modification.DraftModification.test_stretch | ( | self | ) |
Stretch a line. NOT IMPLEMENTED.
def drafttests.test_modification.DraftModification.test_trim | ( | self | ) |
Trim a line. NOT IMPLEMENTED.
def drafttests.test_modification.DraftModification.test_upgrade | ( | self | ) |
Upgrade two Lines into a closed Wire, then draftify it.
def drafttests.test_modification.DraftModification.test_wire_to_bspline | ( | self | ) |
Convert a polyline to BSpline and back.
drafttests.test_modification.DraftModification.doc |
Referenced by draftguitools.gui_lineslope.LineSlope.accept(), draftguitools.gui_dimensions.Dimension.action(), draftguitools.gui_base.GuiCommandSimplest.Activated(), draftguitools.gui_beziers.BezCurve.Activated(), draftguitools.gui_beziers.CubicBezCurve.Activated(), draftguitools.gui_dimension_ops.FlipDimension.Activated(), draftguitools.gui_groups.AddToConstruction.Activated(), draftguitools.gui_heal.Heal.Activated(), draftguitools.gui_layers.Layer.Activated(), draftguitools.gui_splines.BSpline.Activated(), draftguitools.gui_wire2spline.WireToBSpline.Activated(), draftguitools.gui_lines.Line.Activated(), WorkingPlane.Plane.alignToPointAndAxis(), WorkingPlane.Plane.alignToPointAndAxis_SVG(), Mod.Show.SceneDetails.ClipPlane.ClipPlane.apply_data(), Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.apply_data(), Mod.Show.SceneDetails.Pickability.Pickability.apply_data(), Mod.Show.SceneDetails.VProperty.VProperty.apply_data(), importSVG.svgHandler.characters(), draftguitools.gui_drawing.Drawing.createDefaultPage(), draftguitools.gui_fillets.Fillet.draw_arc(), importSVG.svgHandler.endElement(), draftguitools.gui_arcs.Arc_3Points.finish(), draftguitools.gui_fillets.Fillet.finish(), draftguitools.gui_arcs.Arc.finish(), draftguitools.gui_beziers.BezCurve.finish(), draftguitools.gui_beziers.CubicBezCurve.finish(), draftguitools.gui_polygons.Polygon.finish(), draftguitools.gui_rotate.Rotate.finish(), draftguitools.gui_splines.BSpline.finish(), Mod.Show.SceneDetail.SceneDetail.full_key(), draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.get_annotations(), importIFClegacy.IfcEntity.getProperties(), importIFClegacy.IfcEntity.getProperty(), draftguitools.gui_groups.AddToGroup.proceed(), draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.read_meta(), draftguitools.gui_trimex.Trimex.redraw(), draftguitools.gui_lines.Line.removeTemporaryObject(), WorkingPlane.Plane.reset(), draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.save_meta(), Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.scene_value(), Mod.Show.SceneDetails.Pickability.Pickability.scene_value(), Mod.Show.SceneDetails.VProperty.VProperty.scene_value(), Mod.Show.SceneDetail.SceneDetail.set_doc(), drafttests.test_creation.DraftCreation.tearDown(), PathTests.TestPathDrillable.TestPathDrillable.tearDown(), PathTests.TestPathHelix.TestPathHelix.tearDown(), PathTests.TestPathPropertyBag.TestPathPropertyBag.tearDown(), PathTests.TestPathSetupSheet.TestPathSetupSheet.tearDown(), PathTests.TestPathToolController.TestPathToolController.tearDown(), TestSpreadsheet.SpreadsheetCases.tearDown(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test00(), PathTests.TestPathUtil.TestPathUtil.test00(), PathTests.TestPathPost.TestOutputNameSubstitution.test000(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test01(), PathTests.TestPathUtil.TestPathUtil.test01(), PathTests.TestPathAdaptive.TestPathAdaptive.test02(), PathTests.TestPathUtil.TestPathUtil.test02(), PathTests.TestPathAdaptive.TestPathAdaptive.test03(), PathTests.TestPathHelix.TestPathHelix.test03(), PathTests.TestPathUtil.TestPathUtil.test03(), PathTests.TestPathAdaptive.TestPathAdaptive.test04(), PathTests.TestPathHelix.TestPathHelix.test04(), PathTests.TestPathUtil.TestPathUtil.test04(), PathTests.TestPathAdaptive.TestPathAdaptive.test05(), PathTests.TestPathAdaptive.TestPathAdaptive.test06(), PathTests.TestPathAdaptive.TestPathAdaptive.test07(), PathTests.TestPathSetupSheet.TestPathSetupSheet.test13(), drafttests.test_creation.DraftCreation.test_dimension_linear_obj(), drafttests.test_creation.DraftCreation.test_dimension_radial_obj(), drafttests.test_creation.DraftCreation.test_facebinder(), drafttests.test_creation.DraftCreation.test_fillet(), drafttests.test_creation.DraftCreation.test_label(), TestSpreadsheet.SpreadsheetCases.testAggregates(), TestSpreadsheet.SpreadsheetCases.testAlias(), TestSpreadsheet.SpreadsheetCases.testAmbiguousAlias(), TestSpreadsheet.SpreadsheetCases.testBindAcrossSheets(), TestSpreadsheet.SpreadsheetCases.testBindHiddenRefAcrossSheets(), TestSpreadsheet.SpreadsheetCases.testClearAlias(), TestSpreadsheetGui.SpreadsheetGuiCases.testCopySingleCell(), TestSpreadsheet.SpreadsheetCases.testCrossDocumentLinks(), TestSpreadsheet.SpreadsheetCases.testExpressionWithAlias(), TestSpreadsheet.SpreadsheetCases.testFixPR6843(), TestSpreadsheet.SpreadsheetCases.testFunctions(), TestSpreadsheet.SpreadsheetCases.testInsertColumnsAlias(), TestSpreadsheet.SpreadsheetCases.testInsertRows(), TestSpreadsheet.SpreadsheetCases.testInsertRowsAlias(), TestSpreadsheet.SpreadsheetCases.testInvoluteGear(), TestSpreadsheet.SpreadsheetCases.testIssue3128(), TestSpreadsheet.SpreadsheetCases.testIssue3225(), TestSpreadsheet.SpreadsheetCases.testIssue3363(), TestSpreadsheet.SpreadsheetCases.testIssue3432(), TestSpreadsheet.SpreadsheetCases.testIssue4156(), TestSpreadsheet.SpreadsheetCases.testIssue6840(), TestSpreadsheet.SpreadsheetCases.testIssue6844(), TestSpreadsheet.SpreadsheetCases.testMatrix(), TestSpreadsheet.SpreadsheetCases.testMergeCells(), TestSpreadsheet.SpreadsheetCases.testMergeCellsAndBind(), TestSpreadsheet.SpreadsheetCases.testNumbers(), TestSpreadsheet.SpreadsheetCases.testPlacementName(), TestSpreadsheet.SpreadsheetCases.testPrecedence(), TestSpreadsheet.SpreadsheetCases.testQuantitiesAndFractionsAsNumbers(), TestSpreadsheet.SpreadsheetCases.testRelationalOperators(), TestSpreadsheet.SpreadsheetCases.testRemoveColumnsAlias(), TestSpreadsheet.SpreadsheetCases.testRemoveColumnsAliasReuseName(), TestSpreadsheet.SpreadsheetCases.testRemoveRows(), TestSpreadsheet.SpreadsheetCases.testRemoveRowsAlias(), TestSpreadsheet.SpreadsheetCases.testRemoveRowsAliasReuseName(), TestSpreadsheet.SpreadsheetCases.testRenameAlias(), TestSpreadsheet.SpreadsheetCases.testRenameAlias2(), TestSpreadsheet.SpreadsheetCases.testRenameAlias3(), TestSpreadsheet.SpreadsheetCases.testSetInvalidAlias(), TestSpreadsheet.SpreadsheetCases.testSetInvalidAlias2(), TestSpreadsheet.SpreadsheetCases.testSketcher(), TestSpreadsheet.SpreadsheetCases.testUndoAliasCreationReuseName(), TestSpreadsheet.SpreadsheetCases.testUnits(), draftguitools.gui_trimex.Trimex.trimObject(), draftguitools.gui_trimex.Trimex.trimObjects(), Mod.PartDesign.WizardShaft.Shaft.Shaft.updateConstraint(), Mod.PartDesign.WizardShaft.Shaft.Shaft.updateEdge(), and Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.val().
drafttests.test_modification.DraftModification.doc_name |
Referenced by drafttests.test_airfoildat.DraftAirfoilDAT.tearDown(), drafttests.test_dwg.DraftDWG.tearDown(), drafttests.test_dxf.DraftDXF.tearDown(), drafttests.test_modification.DraftModification.tearDown(), drafttests.test_oca.DraftOCA.tearDown(), drafttests.test_pivy.DraftPivy.tearDown(), and drafttests.test_svg.DraftSVG.tearDown().