mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
Merge pull request #6419 from takluyver/sort-test-dir-contents
Sort directory contents in test before assertion
This commit is contained in:
commit
3dc94d6911
@ -188,7 +188,7 @@ class TestContentsManager(TestCase):
|
||||
|
||||
dir_model = cm.get_model(path)
|
||||
self.assertEqual(
|
||||
dir_model['content'],
|
||||
sorted(dir_model['content'], key=lambda x: x['name']),
|
||||
[symlink_model, file_model],
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user