We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 896390c commit 55d0cbbCopy full SHA for 55d0cbb
1 file changed
tests/helpers.py
@@ -243,9 +243,11 @@ def dummy_verified_contract():
243
return VerifiedContract.dummy()
244
245
246
-def initialize_schema(connection):
+def initialize_schema(connection, schema_name="public"):
247
with open('./database.sql', 'r') as schema_file:
248
schema = schema_file.read()
249
250
with connection.cursor() as cursor:
251
cursor.execute(schema)
252
+ # Set the schema search path because `database.sql` resets it
253
+ cursor.execute(f"SET search_path = {schema_name}")
0 commit comments