Skip to content

TestCase pass-specification_optionality_and_facet_optionality_can_be_combined not passes #402

Description

@Cudok

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions