Skip to content

Commit

Permalink
fix: assure sorted by param_id
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <[email protected]>
  • Loading branch information
degenaro committed Feb 5, 2025
1 parent 403d832 commit 6630f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/trestle/core/commands/author/prof_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ def test_profile_ohv(required_sections: Optional[str], success: bool, ohv: bool,
prof.Profile,
FileContentType.JSON
)
set_params = profile.modify.set_parameters
# assure sorted by param_id
set_params = sorted(profile.modify.set_parameters, key=lambda x: x.param_id)
assert len(set_params) == 14
assert set_params[0].values[0] == 'all personnel'
# the label is present in the header so it ends up in the set_parameter
Expand Down

0 comments on commit 6630f76

Please sign in to comment.