Skip to content

Commit a71d1aa

Browse files
Ensure that the environment is initialized before establishing an
administrative connection.
1 parent 5b4c6c4 commit a71d1aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ def get_admin_connection(self, use_async=False):
385385
"""
386386
Returns an administrative connection to the database.
387387
"""
388+
self._initialize()
388389
if not self.admin_user or not self.admin_password:
389390
pytest.skip("missing administrative credentials")
390391
params = self.get_connect_params()

0 commit comments

Comments
 (0)