mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Fix bug where MergeDuplicateTypesByTag recipe would've left multiple IfcRelDefinesByType relationships which is no good
This commit is contained in:
@@ -36,15 +36,15 @@ class TestPsetQto:
|
||||
|
||||
def test_getting_applicables_for_a_specific_predefined_type(self):
|
||||
names = self.pset_qto.get_applicable_names("IfcAudioVisualAppliance")
|
||||
assert len(names) == 17
|
||||
assert len(names) == 12
|
||||
assert "Pset_AudioVisualApplianceTypeAmplifier" not in names
|
||||
names = self.pset_qto.get_applicable_names("IfcAudioVisualAppliance", predefined_type="AMPLIFIER")
|
||||
assert "Pset_AudioVisualApplianceTypeAmplifier" in names
|
||||
assert len(names) == 18
|
||||
assert len(names) == 13
|
||||
|
||||
def test_getting_a_pset_of_a_type_where_the_type_class_is_not_explicitly_applicable(self):
|
||||
names = self.pset_qto.get_applicable_names("IfcWall")
|
||||
assert "Pset_WallCommon" in names
|
||||
names = self.pset_qto.get_applicable_names("IfcWallType")
|
||||
assert len(names) == 9
|
||||
assert len(names) == 5
|
||||
assert "Pset_WallCommon" in names
|
||||
|
||||
Reference in New Issue
Block a user