Skip to content

Commit

Permalink
AE-2247: Refactor liite destruction test to use the public api
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-juhohaa committed Oct 16, 2024
1 parent 41d3d8e commit 03b8b80
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@
(t/is (not-empty (select-liitteet-audit energiatodistus-id-2))))

;; Destroy et-1 liiteet
(#'service/destroy-energiatodistus-liitteet ts/*db* ts/*aws-s3-client* energiatodistus-id-1)
(expire-energiatodistus! energiatodistus-id-1)
(service/destroy-expired-energiatodistukset! ts/*db* ts/*aws-s3-client*)

(t/testing "The liitteet for energiatodistus-1 are deleted but exist for energiatodistus-2"
(let [liitteet-1-in-db (select-liitteet energiatodistus-id-1)
Expand Down

0 comments on commit 03b8b80

Please sign in to comment.