Update Test for LP1722827 After LP1482757
authorJason Boyer <JBoyer@equinoxOLI.org>
Tue, 1 Mar 2022 12:55:16 +0000 (07:55 -0500)
committerJason Boyer <JBoyer@equinoxOLI.org>
Tue, 1 Mar 2022 12:58:30 +0000 (07:58 -0500)
The 4th part of the old test is incorrect as not deleting these is
the point of 1482757. Test has been updated to reflect that.

Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>

Open-ILS/src/sql/Pg/t/lp1722827_trim_spaces_from_located_uris.pg

index 11c2fb9..a08c288 100644 (file)
@@ -21,13 +21,13 @@ UPDATE biblio.record_entry SET marc = REPLACE(marc,'<subfield code="9">CONS</sub
 SELECT is (
        (SELECT COUNT(id) FROM asset.call_number WHERE record = 248 AND deleted = FALSE AND label = '##URI##')::INTEGER,
        1::INTEGER,
-       'part 1/2 test for URI creation with spaces, new one should exist despite spaces being added'
+       'part 1/2 test for URI creation with spaces, one should still exist despite spaces being added'
 );
 
 SELECT is (
        (SELECT COUNT(id) FROM asset.call_number WHERE record = 248 AND deleted = TRUE AND label = '##URI##')::INTEGER,
-       1::INTEGER,
-       'part 2/2 test for URI creation with spaces, old URI tag should be deleted now'
+       0::INTEGER,
+       'part 2/2 test for URI creation with spaces, old URI tag should not be deleted as the OU mapping did not change'
 );
 
 SELECT * FROM finish();