]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/t/lp1533329-restrict-opt-in-setting.pg
1bd365e7c10c5509b030f345042d39c8506b5a39
[working/Evergreen.git] / Open-ILS / src / sql / Pg / t / lp1533329-restrict-opt-in-setting.pg
1 \set ECHO
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
23 SELECT isnt_empty(
24     'SELECT * FROM config.org_unit_setting_type WHERE name = $$org.restrict_opt_to_depth$$',
25     'org.restrict_opt_to_depth exists'
26 );
27
28 -- Finish the tests and clean up.
29 SELECT * FROM finish();
30 ROLLBACK;