Skip to content

Commit

Permalink
Revert ssl fix because it is fixed at the server
Browse files Browse the repository at this point in the history
  • Loading branch information
uvchik committed Feb 2, 2021
1 parent 60f58ce commit ba0fb3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_data_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def test_wrong_url_load_turbine_data(self):
):
store_turbine_data_from_oedb("wrong_schema")

@pytest.mark.skip(reason="Use it to check a persistent ssl error")
def test_wrong_ssl_connection(self):
"""Test failing ssl connection. To avoid this error in data.py the in
the function fetch_turbine_data_from_oedb in data.py verify was set
Expand Down
2 changes: 1 addition & 1 deletion windpowerlib/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def fetch_turbine_data_from_oedb(
url = oep_url + "/api/v0/schema/{}/tables/{}/rows/?".format(schema, table)

# load data
result = requests.get(url, verify=False)
result = requests.get(url, verify=True)
if not result.status_code == 200:
raise ConnectionError(
"Database (oep) connection not successful. \nURL: {2}\n"
Expand Down

0 comments on commit ba0fb3d

Please sign in to comment.