Insert consecutive numbering test into random test

This commit is contained in:
Thomas Krijnen
2025-09-01 13:25:37 +02:00
parent e6ea58cd72
commit 78958567cf
@@ -241,6 +241,8 @@ class TestConvertFileLengthUnits(test.bootstrap.IFC2X3):
unit = ifcopenshell.api.unit.add_si_unit(self.file, unit_type="LENGTHUNIT", prefix="MILLI")
ifcopenshell.api.unit.assign_unit(self.file, units=[unit])
output = subject.convert_file_length_units(self.file, target_units="METER")
# there was some renumbering bug in the rocksdb rewrite this statement is to test for that
assert max(i.id() for i in output) == len(output.wrapped_data.entity_names()) + 1
assert subject.get_full_unit_name(subject.get_project_unit(output, "LENGTHUNIT")) == "METRE"
def test_attribute_conversion(self):