From 93e32caa4c3134e4a65a7cd885db6795a8535879 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Wed, 18 Sep 2019 01:07:03 +0200 Subject: [PATCH] fix draft on SQL tests --- src/test/sql/article.sql | 2 +- src/test/sql/comment.sql | 3 ++- src/test/sql/constitution.sql | 3 ++- src/test/sql/vote.sql | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/test/sql/article.sql b/src/test/sql/article.sql index 372a750..2f9a59a 100644 --- a/src/test/sql/article.sql +++ b/src/test/sql/article.sql @@ -5,7 +5,7 @@ declare _user_id uuid; _citizen_id uuid; created_citizen json := '{"name": {"first_name":"George", "last_name":"MICHEL"}, "birthday": "2001-01-01"}'; - created_article json := '{"version_id":"933b6a1b-50c9-42b6-989f-c02a57814ef9", "title": "Love the world", "anonymous": false, "content": "bla bal bla", "tags": ["love", "test"]}'; + created_article json := '{"version_id":"933b6a1b-50c9-42b6-989f-c02a57814ef9", "title": "Love the world", "anonymous": false, "content": "bla bal bla", "tags": ["love", "test"], "draft":false}'; created_article_v2 json; first_article_id uuid; second_article_id uuid; diff --git a/src/test/sql/comment.sql b/src/test/sql/comment.sql index c93638f..bb5fd05 100644 --- a/src/test/sql/comment.sql +++ b/src/test/sql/comment.sql @@ -22,7 +22,8 @@ declare "tags": [ "love", "test" - ] + ], + "draft":false } $json$; _comment_id uuid; diff --git a/src/test/sql/constitution.sql b/src/test/sql/constitution.sql index c17a68a..a2e4944 100644 --- a/src/test/sql/constitution.sql +++ b/src/test/sql/constitution.sql @@ -22,7 +22,8 @@ declare "tags": [ "love", "test" - ] + ], + "draft":false } $json$; created_constitution json := $json$ diff --git a/src/test/sql/vote.sql b/src/test/sql/vote.sql index 678c49b..35774d4 100644 --- a/src/test/sql/vote.sql +++ b/src/test/sql/vote.sql @@ -21,7 +21,8 @@ declare "tags": [ "love", "test" - ] + ], + "draft":false } $json$; votes jsonb;