Skip to content

Commit

Permalink
Add more test for sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Jun 1, 2021
1 parent 7f0a0b7 commit 12e7111
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/legunto_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ def test_sort_lock_file() -> None:
'dependencies': [
'b', 'a', 'c'
]
}
},
'@en/Bar': {
'dependencies': [ 'a' ]
},
}}

sorted_lock = legunto.sort_lock_file(lock)
assert type(sorted_lock['modules']) is OrderedDict
assert sorted_lock['modules'].keys() == sorted(sorted_lock['modules'].keys())
d = sorted_lock['modules']['@en/Foo']['dependencies']
assert d == sorted(d)

Expand Down

0 comments on commit 12e7111

Please sign in to comment.