Merge pull request #42 from mtakaki/mtakaki_fix_build

Fixing the build and upgrading pytest and pytest-cov to latest
This commit is contained in:
mtakaki
2018-03-18 14:45:51 -07:00
committed by GitHub
4 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@@ -11,3 +11,5 @@ share/
MANIFEST MANIFEST
dist/ dist/
.idea .idea
.pytest_cache/
pip-selfcheck.json

View File

@@ -3,7 +3,7 @@ codacy-coverage==1.2.18
ipython==4.2.0 ipython==4.2.0
mock==2.0.0 mock==2.0.0
pudb==2016.1 pudb==2016.1
pytest==2.9.1 pytest==3.4.2
pytest-cov==2.2.1 pytest-cov==2.5.1
requests==2.9.1 requests==2.9.1
schedule==0.3.2 schedule==0.3.2

0
tests/__init__.py Normal file
View File

View File

@@ -24,7 +24,7 @@ class ConfigurationTest(unittest.TestCase):
get_return = mock.Mock() get_return = mock.Mock()
get_return.ok = True get_return.ok = True
get_return.json = mock.Mock() get_return.json = mock.Mock()
get_return.json.return_value = {'data': {'status': 1}} get_return.json.return_value = {'data': {'status': 1, 'default_value': 0.5}}
return get_return return get_return
sys.modules['requests'].get = get sys.modules['requests'].get = get