From 3dbc0f0859f866dbbc59d9c8dd162b19595de856 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Wed, 22 Nov 2023 08:29:42 +0000
Subject: [PATCH] Tweak comparison formatting

---
 tests/test_reference_runs/test_pre_deployment.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/test_reference_runs/test_pre_deployment.py b/tests/test_reference_runs/test_pre_deployment.py
index 77f0ee91a..b1f99ce02 100644
--- a/tests/test_reference_runs/test_pre_deployment.py
+++ b/tests/test_reference_runs/test_pre_deployment.py
@@ -266,14 +266,15 @@ class ComparisonResult:
     def show(self):
         if not self.found_differences():
             print(f"{self.filename} - ✓ no changes")
+            return
 
         print(self.filename)
         for ds in self.new_dsets:
-            print(f"  + NEW {ds}")
+            print(f"  + NEW: {ds}")
         for ds in self.missing_dsets:
-            print(f"  - DEL {ds}")
+            print(f"  - MISSING: {ds}")
         for ds in self.changed_dsets:
-            print(f"  ~ DIF {ds}")
+            print(f"  ~ CHANGED: {ds}")
 
 def gather_dsets(f: h5py.File):
     res = set()
-- 
GitLab