mirror of
https://github.com/mtan93/cachet-url-monitor.git
synced 2026-05-21 22:07:17 +01:00
Fixing the build and upgrading pytest and pytest-cov to latest
This commit is contained in:
@@ -11,3 +11,5 @@ share/
|
|||||||
MANIFEST
|
MANIFEST
|
||||||
dist/
|
dist/
|
||||||
.idea
|
.idea
|
||||||
|
.pytest_cache/
|
||||||
|
pip-selfcheck.json
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user