Run black on IfcOpenShell-python.

This commit is contained in:
Dion Moult
2022-01-10 15:42:24 +11:00
parent 256f40ed44
commit 666e484b2b
32 changed files with 368 additions and 242 deletions
@@ -5,13 +5,18 @@ import ifcopenshell.api
class TestEditLibrary(test.bootstrap.IFC4):
def test_editing_a_library(self):
library = self.file.createIfcLibraryInformation()
ifcopenshell.api.run("library.edit_library", self.file, library=library, attributes={
"Name": "Name",
"Version": "Version",
"VersionDate": "VersionDate",
"Location": "Location",
"Description": "Description",
})
ifcopenshell.api.run(
"library.edit_library",
self.file,
library=library,
attributes={
"Name": "Name",
"Version": "Version",
"VersionDate": "VersionDate",
"Location": "Location",
"Description": "Description",
},
)
assert library.Name == "Name"
assert library.Version == "Version"
assert library.VersionDate == "VersionDate"