Fix core drawing tests after be65774

This commit is contained in:
Andrej730
2025-06-24 13:15:50 +05:00
parent c333535ae5
commit b3778facda
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ class Drawing:
def copy_representation(cls, source, dest): pass
def create_annotation_context(cls, target_view, object_type=None): pass
def create_annotation_object(cls, drawing, object_type): pass
def create_camera(cls, name, matrix, location_hint): pass
def create_camera(cls, name, matrix, location_hint, target_view): pass
def create_svg_schedule(cls, schedule): pass
def create_svg_sheet(cls, document, titleblock): pass
def delete_collection(cls, collection): pass
+2 -2
View File
@@ -332,11 +332,11 @@ class TestDisableEditingDrawings:
class TestAddDrawing:
def test_run(self, ifc, collector, drawing):
def test_run(self, ifc: Prophecy, collector: Prophecy, drawing: Prophecy):
drawing.generate_drawing_name("target_view", "location_hint").should_be_called().will_return("drawing_name")
drawing.ensure_unique_drawing_name("drawing_name").should_be_called().will_return("name")
drawing.generate_drawing_matrix("target_view", "location_hint").should_be_called().will_return("matrix")
drawing.create_camera("name", "matrix", "location_hint").should_be_called().will_return("obj")
drawing.create_camera("name", "matrix", "location_hint", "target_view").should_be_called().will_return("obj")
drawing.get_body_context().should_be_called().will_return("context")
drawing.run_root_assign_class(
obj="obj",