changeset 630:e1bc43b5a7d2

fix leading /
author Alain Mazy <am@osimis.io>
date Wed, 28 Feb 2024 12:50:49 +0100
parents ed0a51317c0b
children 3bf3ea08efde
files NewTests/PostgresUpgrades/test_pg_upgrades.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/NewTests/PostgresUpgrades/test_pg_upgrades.py	Wed Feb 28 09:57:25 2024 +0100
+++ b/NewTests/PostgresUpgrades/test_pg_upgrades.py	Wed Feb 28 12:50:49 2024 +0100
@@ -63,9 +63,9 @@
         # make sure we can 'play' with this Orthanc
         o.instances.get_tags(orthanc_id=instances[0])
         o.instances.delete_all()
-        self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize']))
+        self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize']))
         instances = o.upload_folder(here / "../../Database/Knee")
-        size_before_downgrade = int(o.get_json('/statistics')['TotalDiskSize'])
+        size_before_downgrade = int(o.get_json('statistics')['TotalDiskSize'])
 
         print("Stopping newest Orthanc ")
         subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True)
@@ -107,9 +107,9 @@
         # make sure we can 'play' with Orthanc
         o.instances.get_tags(orthanc_id=instances[0])
         o.instances.delete_all()
-        self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize']))
+        self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize']))
         instances = o.upload_folder(here / "../../Database/Knee")
-        size_before_downgrade = int(o.get_json('/statistics')['TotalDiskSize'])
+        size_before_downgrade = int(o.get_json('statistics')['TotalDiskSize'])
 
         print("Stopping newest Orthanc ")
         subprocess.run(["docker", "compose", "stop", "orthanc-pg-15-under-tests"], check=True)
@@ -127,12 +127,12 @@
 
         # make sure we can 'play' with Orthanc
         o.instances.get_tags(orthanc_id=instances[0])
-        self.assertEqual(size_before_downgrade, int(o.get_json('/statistics')['TotalDiskSize']))
+        self.assertEqual(size_before_downgrade, int(o.get_json('statistics')['TotalDiskSize']))
         o.instances.delete_all()
-        self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize']))
+        self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize']))
         instances = o.upload_folder(here / "../../Database/Knee")
         o.instances.delete_all()
-        self.assertEqual(0, int(o.get_json('/statistics')['TotalDiskSize']))
+        self.assertEqual(0, int(o.get_json('statistics')['TotalDiskSize']))
 
         print("run the integration tests after a downgrade")
         # first create the containers (orthanc-tests + orthanc-pg-15-61-for-integ-tests) so they know each other