mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
Refactor connection option handling in python tests
The PgProtocol.connect() function took extra options for username, database, etc. Remove those options, and have a generic way for each subclass of PgProtocol to provide some default options, with the capability override them in the connect() call.
This commit is contained in:
@@ -28,4 +28,4 @@ def test_createuser(zenith_simple_env: ZenithEnv):
|
||||
pg2 = env.postgres.create_start('test_createuser2')
|
||||
|
||||
# Test that you can connect to new branch as a new user
|
||||
assert pg2.safe_psql('select current_user', username='testuser') == [('testuser', )]
|
||||
assert pg2.safe_psql('select current_user', user='testuser') == [('testuser', )]
|
||||
|
||||
Reference in New Issue
Block a user