buildingSMART / buildingSMART/IDS

TestCase pass-specification_optionality_and_facet_optionality_can_be_combined not passes

Open
#402 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
318
Forks
90
PR merge metrics
No merged PRs in 30d

Description

## description
the TestCase form the folder ids with the regarding files:
- pass-specification_optionality_and_facet_optionality_can_be_combined not passes.ifc and
- pass-specification_optionality_and_facet_optionality_can_be_combined not passes.ids

not pass with the usage of ifcTester. From my understanding (based on https://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/scripts.md) this TestCase should pass fully.

## used python script
``` python
import ifcopenshell
import ifctester
import ifctester.ids
import ifctester.reporter
import webbrowser
model = ifcopenshell.open('pass-specification_optionality_and_facet_optionality_can_be_combined.ifc')
my_ids = ifctester.ids.open('pass-specification_optionality_and_facet_optionality_can_be_combined.ids')
my_ids.validate(model)

# return the check of specifications pass(true) or fail(false) with
# and the name of the specification
# and if all specifications of one IDS pass
all_spec_pass = True
for spec in my_ids.specifications:
print("name: {}, passed: {}".format(spec.name, spec.status))
if not spec.status:
all_spec_pass = False
print(">>>>>> ")
print("all checks of the specifications of this IDS pass: {}".format(all_spec_pass))

# for check the results of return above
ifctester.reporter.Console(my_ids).report()

```
### return
``` shell
name: Specification optionality and facet optionality can be combined, passed: False
>>>>>>
all checks of the specifications of this IDS pass: False
Specification optionality and facet optionality can be combined
[FAIL] (0/1) Specification optionality and facet optionality can be combined
Applies to:
All IFCWALL data
Requirements:
The Name shall be Waldo
The Description may be Foobar
The attribute value None is empty - #1=IfcWall('1hqIFTRjfV6AWq_bMtnZwI',$,'Waldo',$,$,$,$,$,$)

```

### setup
python: 3.11
ifctester: 0.8.1
ifcopenshell: 0.7.0.240627
os: PopOS

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.