ifc2x3 tests

removed part of test_append_two_type_products_sharing_the_same_material_indirectly_via_a_material_set for ifc2x3 compatibility and removed part is already tested in test_append_two_type_products_sharing_the_same_material_with_properties
This commit is contained in:
Andrej730
2024-05-13 12:32:58 +05:00
parent 3665dda87c
commit a9cba30da6
35 changed files with 395 additions and 262 deletions
@@ -20,12 +20,19 @@ import test.bootstrap
import ifcopenshell.api
class TestAddMaterialSet(test.bootstrap.IFC4):
class TestAddMaterialSetIFC2X3(test.bootstrap.IFC2X3):
def test_add_layer_set(self):
material = ifcopenshell.api.run("material.add_material_set", self.file, set_type="IfcMaterialLayerSet")
assert material.LayerSetName == "Unnamed"
assert material.is_a("IfcMaterialLayerSet")
def test_add_list(self):
material = ifcopenshell.api.run("material.add_material_set", self.file, set_type="IfcMaterialList")
assert material.is_a("IfcMaterialList")
class TestAddMaterialSetIFC4(test.bootstrap.IFC4, TestAddMaterialSetIFC2X3):
# entities added in IFC4
def test_add_profile_set(self):
material = ifcopenshell.api.run("material.add_material_set", self.file, set_type="IfcMaterialProfileSet")
assert material.Name == "Unnamed"
@@ -35,7 +42,3 @@ class TestAddMaterialSet(test.bootstrap.IFC4):
material = ifcopenshell.api.run("material.add_material_set", self.file, set_type="IfcMaterialConstituentSet")
assert material.Name == "Unnamed"
assert material.is_a("IfcMaterialConstituentSet")
def test_add_list(self):
material = ifcopenshell.api.run("material.add_material_set", self.file, set_type="IfcMaterialList")
assert material.is_a("IfcMaterialList")