Skip to content

Commit

Permalink
Merge pull request #22 from bcgsc/bugfix/sorting-errors-in-test-upload
Browse files Browse the repository at this point in the history
add additional sorting to result comparison
  • Loading branch information
dustinbleile authored Jul 31, 2024
2 parents 275dd99 + 2ea9851 commit e0b062d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_ipr/test_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def compare_sections(section1, section2):
item[subitem].pop(key, None)
if isinstance(item[subitem], list):
[subsubitem.pop(key, None) for subsubitem in item[subitem]]
if item[subitem] != []:
item[subitem] = sorted(item[subitem], key=lambda d: str(d))
if isinstance(section1, list):
section2_items = [str(item) for item in section2]
section2_items.sort()
Expand Down

0 comments on commit e0b062d

Please sign in to comment.