Fix test not to expect notebooks sorted

PR gh-2281 removed the sorting step from the server. This can result in
non-deterministic test failures, because the test checked against a
list.
pull/2494/head
Thomas Kluyver 9 years ago
parent c50b47af12
commit 5af43fbae1

@ -249,8 +249,8 @@ class APITest(NotebookTestBase):
self.assertEqual(nbnames, expected)
nbs = notebooks_only(self.api.list('ordering').json())
nbnames = [n['name'] for n in nbs]
expected = ['A.ipynb', 'b.ipynb', 'C.ipynb']
nbnames = {n['name'] for n in nbs}
expected = {'A.ipynb', 'b.ipynb', 'C.ipynb'}
self.assertEqual(nbnames, expected)
def test_list_dirs(self):

Loading…
Cancel
Save