File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -874,6 +874,8 @@ def make(self, values):
874
874
875
875
if __name__ == '__main__' :
876
876
db = Postgres ("postgres://jrandom@localhost/test" )
877
+ db .run ("DROP SCHEMA IF EXISTS public CASCADE" )
878
+ db .run ("CREATE SCHEMA public" )
877
879
db .run ("DROP TABLE IF EXISTS foo CASCADE" )
878
880
import doctest
879
881
doctest .testmod ()
Original file line number Diff line number Diff line change @@ -261,6 +261,8 @@ def update_attributes(self, **kw):
261
261
262
262
from postgres import Postgres
263
263
db = Postgres ("postgres://jrandom@localhost/test" )
264
+ db .run ("DROP SCHEMA IF EXISTS public CASCADE" )
265
+ db .run ("CREATE SCHEMA public" )
264
266
db .run ("DROP TABLE IF EXISTS foo CASCADE" )
265
267
db .run ("CREATE TABLE foo (bar text, baz int)" )
266
268
db .run ("INSERT INTO foo VALUES ('blam', 42)" )
You can’t perform that action at this time.
0 commit comments