mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Support auto detection of unit type when adding imperial units
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import test.bootstrap
|
||||
import ifcopenshell.api
|
||||
|
||||
|
||||
class TestAddMonetaryUnit(test.bootstrap.IFC4):
|
||||
def test_run(self):
|
||||
unit = ifcopenshell.api.run("unit.add_monetary_unit", self.file, currency="USD")
|
||||
assert unit.is_a("IfcMonetaryUnit")
|
||||
assert unit.Currency == "USD"
|
||||
Reference in New Issue
Block a user