mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-13 06:53:36 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user