From 891643c34351a8f19b9eec65cb8764a53fa54e4d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Nov 2024 13:32:17 +0100 Subject: [PATCH] Add unit test --- test/sql/table_test.sql | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/sql/table_test.sql diff --git a/test/sql/table_test.sql b/test/sql/table_test.sql new file mode 100644 index 0000000..a1a5738 --- /dev/null +++ b/test/sql/table_test.sql @@ -0,0 +1,23 @@ +-- +-- We assume that ddl_historization is installed in public schema +-- + +SET search_path=public,pgtap; + +BEGIN; + +SELECT plan(6); + +CREATE EXTENSION schedoc CASCADE; + +SELECT has_extension('schedoc'); +SELECT has_table('schedoc_column_raw'); +SELECT has_view('schedoc_column_comments'); + +SELECT has_enum('data_status'); + +SELECT enum_has_labels('data_status', ARRAY['public', 'private', 'legacy', 'wip']); + +SELECT has_function('schedoc_start'); + +ROLLBACK;