6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00

Fix bug with password

This commit is contained in:
Pavel Císař 2021-05-27 19:33:30 +02:00
parent e9366002e2
commit c8d0c450f7

View File

@ -120,9 +120,9 @@ def pytest_configure(config):
_vars_['server'] = config.getoption('server') _vars_['server'] = config.getoption('server')
_vars_['bin-dir'] = config.getoption('bin_dir') _vars_['bin-dir'] = config.getoption('bin_dir')
_vars_['protocol'] = config.getoption('protocol') _vars_['protocol'] = config.getoption('protocol')
_vars_['password'] = config.getoption('password', 'masterkey')
srv_conf = driver_config.get_server(_vars_['server']) srv_conf = driver_config.get_server(_vars_['server'])
_vars_['host'] = srv_conf.host.value if srv_conf is not None else '' _vars_['host'] = srv_conf.host.value if srv_conf is not None else ''
_vars_['password'] = srv_conf.password.value
# #
with connect_server(_vars_['server'], user='SYSDBA', with connect_server(_vars_['server'], user='SYSDBA',
password=_vars_['password']) as srv: password=_vars_['password']) as srv: