Skip to content

Commit

Permalink
delete conformance check to schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jun 9, 2024
1 parent 0dd9ca8 commit d06de73
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pywcmp/wcmp2/ets.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,19 +187,12 @@ def test_requirement_conformance(self):
Validate that a WCMP record provides valid conformance information.
"""

conformance_class = 'http://wis.wmo.int/spec/wcmp/2/conf/core'

status = {
'id': gen_test_id('conformance'),
'code': 'PASSED'
'code': 'PASSED',
'message': 'Passes given schema is compliant/valid'
}

conformance = self.record.get('conformsTo')

if conformance_class not in conformance:
status['code'] = 'FAILED'
status['message'] = f'Missing conformance class {conformance_class}' # noqa

return status

def test_requirement_type(self):
Expand Down

0 comments on commit d06de73

Please sign in to comment.