File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11pipeline :
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
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def read(*parts):
1313
1414
1515install_requirements = [
16- 'requests==2.19 .1' ,
16+ 'requests==2.20 .1' ,
1717]
1818
1919test_requirements = [
Original file line number Diff line number Diff line change 1- import os
21from datetime import datetime , timedelta
32
43import pytest
1110class 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'
You can’t perform that action at this time.
0 commit comments