From: Galen Charlton Date: Fri, 2 Sep 2016 20:40:29 +0000 (-0400) Subject: add test of asset.copy_state() X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59dd4f791a33549f7e031131192dbe1d71bfced3;p=working%2FEvergreen.git add test of asset.copy_state() Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/live_t/copy_state.pg b/Open-ILS/src/sql/Pg/live_t/copy_state.pg new file mode 100644 index 0000000000..e09e62b136 --- /dev/null +++ b/Open-ILS/src/sql/Pg/live_t/copy_state.pg @@ -0,0 +1,11 @@ +BEGIN; + +SELECT plan(1); + +\set copy_id 245 + +UPDATE asset.copy SET status = 4 WHERE id = :copy_id; + +SELECT is(asset.copy_state(:copy_id), 'MISSING', 'asset.copy_state detects missing state'); + +ROLLBACK;