From f3b2653c3611189bdc5a3fb7c25bc3d1bbf3880f Mon Sep 17 00:00:00 2001 From: Becky Ransome <91424856+Beckyrose200@users.noreply.github.com> Date: Mon, 5 Aug 2024 21:05:17 +0100 Subject: [PATCH] Update acceptance test tear down service (#1234) DEFRA/water-abstraction-acceptance-tests#129 During the removal of our region data in the acceptance tests, it was noted that the new region seeder was being deleted in the tear-down service. The tear-down service relies on knowing if the region associated with the data is a test region or not through the 'isTest' property. After deleting the associated data with the test region it then deletes the region itself. As our region is now seeded and not being loaded fo every test, this last delete needs to be removed. This PR is removing that. --- app/services/data/tear-down/water-schema.service.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/services/data/tear-down/water-schema.service.js b/app/services/data/tear-down/water-schema.service.js index 8ebdd4ed3e..6c2a336e5f 100644 --- a/app/services/data/tear-down/water-schema.service.js +++ b/app/services/data/tear-down/water-schema.service.js @@ -244,12 +244,6 @@ async function _deleteAllTestData () { WHERE "is_test" = TRUE; - DELETE - FROM - "water"."regions" - WHERE - "is_test" = TRUE; - DELETE FROM "water"."purposes_primary"