mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Run black on IfcOpenShell-python.
This commit is contained in:
@@ -5,8 +5,11 @@ import ifcopenshell.api
|
||||
class TestEditDerivedUnit(test.bootstrap.IFC4):
|
||||
def test_run(self):
|
||||
unit = self.file.createIfcDerivedUnit()
|
||||
ifcopenshell.api.run("unit.edit_derived_unit", self.file, unit=unit, attributes={
|
||||
"UnitType": "USERDEFINED", "UserDefinedType": "UserDefinedType"
|
||||
})
|
||||
ifcopenshell.api.run(
|
||||
"unit.edit_derived_unit",
|
||||
self.file,
|
||||
unit=unit,
|
||||
attributes={"UnitType": "USERDEFINED", "UserDefinedType": "UserDefinedType"},
|
||||
)
|
||||
assert unit.UnitType == "USERDEFINED"
|
||||
assert unit.UserDefinedType == "UserDefinedType"
|
||||
|
||||
@@ -5,7 +5,5 @@ import ifcopenshell.api
|
||||
class TestEditMonetaryUnit(test.bootstrap.IFC4):
|
||||
def test_run(self):
|
||||
unit = self.file.createIfcMonetaryUnit()
|
||||
ifcopenshell.api.run("unit.edit_monetary_unit", self.file, unit=unit, attributes={
|
||||
"Currency": "FOO"
|
||||
})
|
||||
ifcopenshell.api.run("unit.edit_monetary_unit", self.file, unit=unit, attributes={"Currency": "FOO"})
|
||||
assert unit.Currency == "FOO"
|
||||
|
||||
Reference in New Issue
Block a user