Skip to content

Commit 49188b4

Browse files
committed
fix errors regarding lint
1 parent 7d779b5 commit 49188b4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.pythonPath": "venv/bin/python3"
3+
}

dynatademand/api.py

-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def _api_get(self, uri, query_params=None):
6363
'Authorization': 'Bearer {}'.format(self._access_token),
6464
'Content-Type': "application/json",
6565
}
66-
6766
response = requests.get(url=url, params=query_params, headers=request_headers)
6867
if response.status_code > 399:
6968
raise DemandAPIError('Demand API request to {} failed with status {}. Response: {}'.format(
@@ -462,4 +461,3 @@ def reconcile_project(self, project_id, file, message):
462461
url, response.status_code, response.content
463462
))
464463
return response.json()
465-

tests/test_invoices.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def test_get_invoices_summary(self):
3838
content_type='application/pdf',
3939
stream=True,
4040
status=200)
41-
42-
self.api.get_invoices_summary(startDate='2019-06-12', endDate='2019-06-19', extProjectId='010528ef-8984-48c1-a06d-4dae730da027')
41+
self.api.get_invoices_summary(startDate='2019-06-12',
42+
endDate='2019-06-19',
43+
extProjectId='010528ef-8984-48c1-a06d-4dae730da027')
4344
self.assertEqual(len(responses.calls), 1)
4445
self.assertEqual(responses.calls[0].response.headers['content-type'], 'application/pdf')

0 commit comments

Comments
 (0)