Skip to content

Commit

Permalink
Update acceptance test tear down service (#1234)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Beckyrose200 authored Aug 5, 2024
1 parent 15c1a05 commit f3b2653
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/services/data/tear-down/water-schema.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ async function _deleteAllTestData () {
WHERE
"is_test" = TRUE;
DELETE
FROM
"water"."regions"
WHERE
"is_test" = TRUE;
DELETE
FROM
"water"."purposes_primary"
Expand Down

0 comments on commit f3b2653

Please sign in to comment.