File tree Expand file tree Collapse file tree
downloads/asterion-fcta-v1.0-public-release/asterion-fcta-v1.0/scripts/python/v0_9 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+ import csv , sys
3+ root = Path (__file__ ).resolve ().parents [3 ]
4+ req = root / 'verification/v0_9/requirements_verification_matrix.csv'
5+ rows = list (csv .DictReader (req .open (encoding = 'utf-8' )))
6+ assert len (rows ) >= 20 , f'Expected at least 20 requirements, found { len (rows )} '
7+ closed = sum (1 for r in rows if r ['status' ].lower ().startswith ('closed' ))
8+ assert closed == len (rows ), f'Not all requirements closed in v0.9 package: { closed } /{ len (rows )} '
9+ expected = [
10+ 'docs/v0_9/final_report/ASTERION_FCTA_1_Final_Engineering_Report_v0_9.md' ,
11+ 'prototype/v0_9/test_plan/physical_prototype_test_plan.md' ,
12+ 'media/presentation/v0_9/demo_video_storyboard.md' ,
13+ 'web-viewer/v0_9/index.html'
14+ ]
15+ for item in expected :
16+ assert (root / item ).exists (), f'Missing { item } '
17+ print ('ASTERION v0.9 package validation PASS' )
18+ print (f'Requirements closed: { closed } /{ len (rows )} ' )
You can’t perform that action at this time.
0 commit comments