Refactoring: user fixtures in sql tests

This commit is contained in:
2020-03-06 09:54:58 +01:00
parent 4a4e9651fd
commit 559890000d
11 changed files with 101 additions and 281 deletions

View File

@@ -126,13 +126,7 @@ begin
select (resource#>>'{0, choice, name}') = 'Opinion1' from find_citizen_opinions(_citizen_id, null, null, 1, 0)
), 'find_citizen_opinions must return a list of opinion with name';
-- delete vote and context
delete from opinion;
delete from opinion_choice;
delete from article;
delete from citizen;
delete from "user";
rollback;
raise notice 'opinion test pass';
end
$$;