Fix #5950. IfcTester now considers optional requirement facets as per latest documentation.

The IDS documentation used to state that "optional" on requirement
facets was "for information only" and didn't affect the pass / fail
state. This was changed a while ago (which I missed) to a new behaviour:
both no values and passing values will pass.
This commit is contained in:
Dion Moult
2025-01-12 16:28:14 +11:00
parent 8e77011dda
commit 41362e1582
3 changed files with 60 additions and 22 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def run(
class TestIds:
def test_failing_on_opening_invalid_ids_data(self):
with pytest.raises(xmlschema.validators.exceptions.XMLSchemaValidationError):
with pytest.raises(ids.IdsXmlValidationError):
ids.open("""<?xml version="1.0" encoding="UTF-8"?><clearly_not_an_ids/>""")
def test_create_an_ids_with_minimal_information(self):