mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Test edit object placement. See #1711
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import test.bootstrap
|
||||
import ifcopenshell.api
|
||||
|
||||
|
||||
class TestAddSIUnit(test.bootstrap.IFC4):
|
||||
def test_run(self):
|
||||
unit = ifcopenshell.api.run("unit.add_si_unit", self.file, unit_type="LENGTHUNIT", name="METRE", prefix="MILLI")
|
||||
assert unit.UnitType == "LENGTHUNIT"
|
||||
assert unit.Name == "METRE"
|
||||
assert unit.Prefix == "MILLI"
|
||||
Reference in New Issue
Block a user