load pg_trgm when running test
This commit is contained in:
parent
b606d35c11
commit
00b3d716b7
|
@ -19,7 +19,13 @@ app.config["WTF_CSRF_ENABLED"] = False
|
||||||
app.config["SERVER_NAME"] = "sl.test"
|
app.config["SERVER_NAME"] = "sl.test"
|
||||||
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
|
# enable pg_trgm extension
|
||||||
|
with db.engine.connect() as conn:
|
||||||
|
conn.execute("DROP EXTENSION if exists pg_trgm")
|
||||||
|
conn.execute("CREATE EXTENSION pg_trgm")
|
||||||
|
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
|
||||||
add_sl_domains()
|
add_sl_domains()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue