Skip to content

Commit

Permalink
[FIX] account_statement_import_online_qonto : Remove verify = false i…
Browse files Browse the repository at this point in the history
…n calls to qonto
  • Loading branch information
florian-dacosta committed Sep 23, 2024
1 parent e2ef93a commit 7bd1b3d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ def _qonto_header(self):
def _qonto_get_slug(self):
self.ensure_one()
url = QONTO_ENDPOINT + "/organizations/%7Bid%7D"
response = requests.get(
url, verify=False, headers=self._qonto_header(), timeout=10
)
response = requests.get(url, headers=self._qonto_header(), timeout=10)

Check warning on line 57 in account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py

View check run for this annotation

Codecov / codecov/patch

account_statement_import_online_qonto/models/online_bank_statement_provider_qonto.py#L57

Added line #L57 was not covered by tests
if response.status_code == 200:
data = json.loads(response.text)
res = {}
Expand Down Expand Up @@ -101,7 +99,6 @@ def _qonto_obtain_transactions(self, slug, date_since, date_until):
def _qonto_get_transactions(self, url, params):
response = requests.get(
url,
verify=False,
params=params,
headers=self._qonto_header(),
timeout=10,
Expand Down

0 comments on commit 7bd1b3d

Please sign in to comment.