Files
IfcOpenShell/src/ifcopenshell-python/test/api/library/test_edit_reference.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
826 B
Python
Raw Normal View History

import test.bootstrap
import ifcopenshell.api
class TestEditReference(test.bootstrap.IFC4):
def test_editing_a_reference(self):
reference = self.file.createIfcLibraryReference()
2022-01-10 15:42:24 +11:00
ifcopenshell.api.run(
"library.edit_reference",
self.file,
reference=reference,
attributes={
"Location": "Location",
"Identification": "Identification",
"Name": "Name",
"Description": "Description",
"Language": "Language",
},
)
assert reference.Location == "Location"
assert reference.Identification == "Identification"
assert reference.Name == "Name"
assert reference.Description == "Description"
assert reference.Language == "Language"