Hello
We stumbled on the following error when running tests off of master:
Traceback (most recent call last):
File "web/regression/runtests.py", line 254, in <module>
servers_info = test_utils.get_config_data()
File "/Users/pivotal/workspace/pgadmin4/web/regression/test_utils.py",
line 72, in get_config_data
if (not srv.has_key('enabled')) or srv['enabled'] == True:
AttributeError: 'dict' object has no attribute 'has_key'
Please find attached a fix for this.
- George & Tira
diff --git a/web/regression/test_utils.py b/web/regression/test_utils.py
index a2d2f5cd..1f9f0522 100644
--- a/web/regression/test_utils.py
+++ b/web/regression/test_utils.py
@@ -69,7 +69,7 @@ def get_config_data():
"""This function reads the server data from config_data"""
server_data = []
for srv in test_setup.config_data['server_credentials']:
- if (not srv.has_key('enabled')) or srv['enabled'] == True:
+ if (not 'enabled' in srv) or srv['enabled']:
data = {"name": srv['name'],
"comment": srv['comment'],
"host": srv['host'],
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers