Skip to content

Commit ba0fb3d

Browse files
committed
Revert ssl fix because it is fixed at the server
1 parent 60f58ce commit ba0fb3d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_data_handling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_wrong_url_load_turbine_data(self):
102102
):
103103
store_turbine_data_from_oedb("wrong_schema")
104104

105+
@pytest.mark.skip(reason="Use it to check a persistent ssl error")
105106
def test_wrong_ssl_connection(self):
106107
"""Test failing ssl connection. To avoid this error in data.py the in
107108
the function fetch_turbine_data_from_oedb in data.py verify was set

windpowerlib/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def fetch_turbine_data_from_oedb(
137137
url = oep_url + "/api/v0/schema/{}/tables/{}/rows/?".format(schema, table)
138138

139139
# load data
140-
result = requests.get(url, verify=False)
140+
result = requests.get(url, verify=True)
141141
if not result.status_code == 200:
142142
raise ConnectionError(
143143
"Database (oep) connection not successful. \nURL: {2}\n"

0 commit comments

Comments
 (0)