Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodo committed Nov 15, 2024
1 parent 397e600 commit 891643c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/sql/table_test.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 891643c

Please sign in to comment.