Pass password argument if present for SQLQueryTestCase
@@ -1232,6 +1232,9 @@ class SQLQueryTestCase(BaseQueryTestCase):
if pgaddr is None:
raise unittest.SkipTest('SQL tests requires devmode')
pgaddr = json.loads(pgaddr)
+
+ pgdsn = os.environ.get('EDGEDB_TEST_BACKEND_DSN')
+ if not pgdsn:
pgdsn = (
f'postgres:///{pgaddr["database"]}?user={pgaddr["user"]}'
f'&port={pgaddr["port"]}&host={pgaddr["host"]}'
