Removing sheets now works in IFC. See #1153.

This commit is contained in:
Dion Moult
2022-01-29 15:45:45 +11:00
parent 27e6d702e9
commit 44e4ee70ae
4 changed files with 21 additions and 7 deletions
+7
View File
@@ -117,3 +117,10 @@ class TestOpenSheet:
drawing.get_sheet_filename("sheet").should_be_called().will_return("filename")
drawing.open_svg("filename").should_be_called()
subject.open_sheet(drawing, sheet="sheet")
class TestRemoveSheet:
def test_run(self, ifc, drawing):
ifc.run("document.remove_document", document="sheet").should_be_called()
drawing.import_sheets().should_be_called()
subject.remove_sheet(ifc, drawing, sheet="sheet")