From 12e7111cf438f35ba5ca1a1d40dc24918cbec40a Mon Sep 17 00:00:00 2001 From: lens0021 Date: Tue, 1 Jun 2021 12:07:02 +0900 Subject: [PATCH] Add more test for sorting --- tests/legunto_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/legunto_test.py b/tests/legunto_test.py index 47f9aa9..96753d7 100644 --- a/tests/legunto_test.py +++ b/tests/legunto_test.py @@ -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)