Skip to content

Commit 3d6d9d6

Browse files
author
Carlo Smouter
committed
Upgrade requests lib due to security update
1 parent 6c208ee commit 3d6d9d6

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.drone.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
pipeline:
22
test:
33
image: python:${PYTHON_VERSION}-alpine3.8
4+
group: build
45
commands:
5-
- find . -name "*.py[co]" -delete
66
- pip install --upgrade pip
77
- pip install -e .
88
- pip install -e .[tests]
99
- py.test
10-
- find . -name "*.py[co]" -delete
11-
build:
10+
package:
1211
image: python:${PYTHON_VERSION}-alpine3.8
12+
group: build
1313
commands:
1414
- python setup.py sdist bdist_wheel
1515
- rm -rf dist

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(*parts):
1313

1414

1515
install_requirements = [
16-
'requests==2.19.1',
16+
'requests==2.20.1',
1717
]
1818

1919
test_requirements = [

tests/test_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from datetime import datetime, timedelta
32

43
import pytest
@@ -11,13 +10,12 @@
1110
class TestWowApi(object):
1211

1312
def setup(self):
14-
os.environ['WOWAPI_APIKEY'] = 'foo'
1513
self.params = {'access_token': '987'}
1614

1715
self.api = WowApi('client-id', 'client-secret')
1816

1917
self.authorized_api = WowApi('client-id', 'client-secret')
20-
self.authorized_api._access_token = '987'
18+
self.authorized_api._access_token = self.params['access_token']
2119
self.authorized_api._access_token_expiration = datetime.utcnow() + timedelta(hours=1)
2220

2321
self.test_url = 'http://example.com'

0 commit comments

Comments
 (0)