From cd20719c0feb32f83fdea29c080aceeae65d0199 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Wed, 12 May 2021 17:19:18 +0100
Subject: [PATCH] Sort notebooks in test

---
 tests/test_xfel_calibrate/test_cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_xfel_calibrate/test_cli.py b/tests/test_xfel_calibrate/test_cli.py
index 4a75d6242..39697e8e7 100644
--- a/tests/test_xfel_calibrate/test_cli.py
+++ b/tests/test_xfel_calibrate/test_cli.py
@@ -312,7 +312,7 @@ class TestIntelliList:
 
         assert len(calibrate_call.paths.notebooks) == 2
 
-        for i, notebook_path in enumerate(calibrate_call.paths.notebooks):
+        for i, notebook_path in enumerate(sorted(calibrate_call.paths.notebooks)):
             with notebook_path.open() as file:
                 notebook = nbformat.read(file, as_version=4)
 
-- 
GitLab