Skip to content

Commit

Permalink
Merge pull request #274 from buildingSMART/IVS-115-Confusing-Error_Me…
Browse files Browse the repository at this point in the history
…ssage

IVS-115 - Confusing Error Message
  • Loading branch information
civilx64 authored Sep 11, 2024
2 parents 5f85ebd + 9b2e494 commit e9e9f68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/SPS007_Spatial-containment.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@E00040

Feature: SPS007 - Spatial Containment
The rule verifies that spatial containment via IfcRelContainedInSpatialStructure is utilised in accordance with Contept Template for Spatial Containment
The rule verifies that spatial containment via IfcRelContainedInSpatialStructure is utilised in accordance with Concept Template for Spatial Containment

Scenario Outline: Instances of IfcAnnotation and IfcGrid must be contained within a spatial structure

Expand Down
2 changes: 1 addition & 1 deletion features/steps/givens/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def step_impl(context, inst, comparison_op, attribute, value, tail=SubTypeHandli
yield ValidationOutcome(instance_id=inst, severity = OutcomeSeverity.PASSED)
else: # in case of a Then statement
yield ValidationOutcome(instance_id=inst,
expected = f"{'not ' if comparison_op == ComparisonOperator.NOT_EQUAL or value == () else ''}{'empty' if value == () else value}",
expected = f"{'not ' if comparison_op == ComparisonOperator.NOT_EQUAL else ''}{'empty' if value == () else value}",
observed = 'empty' if observed_v == () else observed_v, severity = OutcomeSeverity.ERROR)


Expand Down

0 comments on commit e9e9f68

Please sign in to comment.