Skip to content

Commit

Permalink
Fix the IOD workaround test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
celeron533 committed Jan 28, 2025
1 parent c670936 commit 870f23a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/standard_workarounds_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ def test_missing_module_type_in_section_a_90_2_5_description(part03):

def test_missing_word_in_table_b_5_1(part04):
table = get_table_rows_from_ids(part04, ['table_B.5-1'], ['name', 'id', 'ciod'])
row = next(row for row in table if 'Confocal Microscopy' in row['ciod'])
assert row['ciod'] != 'Confocal Microscopy Tiled Pyramidal Image', 'Row now contains full IOD name'
row = next(row for row in table if 'Confocal Microscopy Tiled' in row['ciod'])
assert row['ciod'] != 'Confocal Microscopy Tiled Pyramidal Image IOD', 'Row now contains full IOD name'


def test_miscapitalized_word_in_table_b_5_1(part04):
table = get_table_rows_from_ids(part04, ['table_B.5-1'], ['name', 'id', 'ciod'])
row = next(row for row in table if 'Softcopy Presentation State' in row['ciod'])
assert row['ciod'] != 'Pseudo-Color Softcopy Presentation State', 'Row now contains correct capitalization'
row = next(row for row in table if 'Pseudo-color Softcopy Presentation State'.lower() in row['ciod'].lower())
assert row['ciod'] != 'Pseudo-Color Softcopy Presentation State IOD', 'Row now contains correct capitalization'

0 comments on commit 870f23a

Please sign in to comment.