]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/t/lp1582354_report_able_to_show_bibs_where_the_last_copy_was_deleted_cancels.pg
bbbc9aa2d9b51d2be0ded6af0474592307297d15
[working/Evergreen.git] / Open-ILS / src / sql / Pg / t / lp1582354_report_able_to_show_bibs_where_the_last_copy_was_deleted_cancels.pg
1 \set ECHO none
2 \set QUIET 1
3 -- Turn off echo and keep things quiet.
4
5 -- Format the output for nice TAP.
6 \pset format unaligned
7 \pset tuples_only true
8 \pset pager
9
10 -- Revert all changes on failure.
11 \set ON_ERROR_ROLLBACK 1
12 \set ON_ERROR_STOP true
13 \set QUIET 1
14
15 -- Load the TAP functions.
16 BEGIN;
17
18 -- Plan the tests.
19 SELECT plan(1);
20
21 -- Run the tests.
22 -- Check for Lost and Paid copy status.
23 SELECT has_view( 'extend_reporter', 'copy_count_per_org', 'VIEW extend_reporter.copy_count_per_org EXISTS' );
24
25 -- Finish the tests and clean up.
26 SELECT * FROM finish();
27 ROLLBACK;