mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 13:52:23 +00:00
Minor fix
This commit is contained in:
@@ -185,6 +185,7 @@ class Drawing:
|
|||||||
def get_group_elements(cls, group): pass
|
def get_group_elements(cls, group): pass
|
||||||
def get_ifc_representation_class(cls, object_type): pass
|
def get_ifc_representation_class(cls, object_type): pass
|
||||||
def get_name(cls, element): pass
|
def get_name(cls, element): pass
|
||||||
|
def get_schedule_location(cls, schedule): pass
|
||||||
def get_sheet_filename(cls, document): pass
|
def get_sheet_filename(cls, document): pass
|
||||||
def get_text_literal(cls, obj): pass
|
def get_text_literal(cls, obj): pass
|
||||||
def get_text_product(cls, element): pass
|
def get_text_product(cls, element): pass
|
||||||
@@ -193,6 +194,7 @@ class Drawing:
|
|||||||
def import_sheets(cls): pass
|
def import_sheets(cls): pass
|
||||||
def import_text_attributes(cls, obj): pass
|
def import_text_attributes(cls, obj): pass
|
||||||
def import_text_product(cls, obj): pass
|
def import_text_product(cls, obj): pass
|
||||||
|
def open_spreadsheet(cls, uri): pass
|
||||||
def open_svg(cls, filepath): pass
|
def open_svg(cls, filepath): pass
|
||||||
def run_root_assign_class(cls, obj=None, ifc_class=None, predefined_type=None, should_add_representation=True, context=None, ifc_representation_class=None): pass
|
def run_root_assign_class(cls, obj=None, ifc_class=None, predefined_type=None, should_add_representation=True, context=None, ifc_representation_class=None): pass
|
||||||
def set_drawing_collection_name(cls, group, collection): pass
|
def set_drawing_collection_name(cls, group, collection): pass
|
||||||
|
|||||||
@@ -183,12 +183,12 @@ class TestOpenSchedule:
|
|||||||
class TestUpdateScheduleName:
|
class TestUpdateScheduleName:
|
||||||
def test_do_not_update_if_name_unchanged(self, ifc, drawing):
|
def test_do_not_update_if_name_unchanged(self, ifc, drawing):
|
||||||
drawing.get_name("schedule").should_be_called().will_return("name")
|
drawing.get_name("schedule").should_be_called().will_return("name")
|
||||||
subject.update_drawing_name(ifc, drawing, schedule="schedule", name="name")
|
subject.update_schedule_name(ifc, drawing, schedule="schedule", name="name")
|
||||||
|
|
||||||
def test_run(self, ifc, drawing):
|
def test_run(self, ifc, drawing):
|
||||||
drawing.get_name("schedule").should_be_called().will_return("oldname")
|
drawing.get_name("schedule").should_be_called().will_return("oldname")
|
||||||
ifc.run("document.edit_information", information="schedule", attributes={"Name": "name"}).should_be_called()
|
ifc.run("document.edit_information", information="schedule", attributes={"Name": "name"}).should_be_called()
|
||||||
subject.update_drawing_name(ifc, drawing, schedule="schedule", name="name")
|
subject.update_schedule_name(ifc, drawing, schedule="schedule", name="name")
|
||||||
|
|
||||||
|
|
||||||
class TestLoadDrawings:
|
class TestLoadDrawings:
|
||||||
|
|||||||
Reference in New Issue
Block a user