From 9e66736f4828d0a2cb750810b81b241fcf63832b Mon Sep 17 00:00:00 2001 From: Mitsuo Takaki Date: Sun, 18 Mar 2018 14:43:41 -0700 Subject: [PATCH] Fixing the build and upgrading pytest and pytest-cov to latest --- .gitignore | 2 ++ dev_requirements.txt | 4 ++-- tests/__init__.py | 0 tests/test_configuration.py | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tests/__init__.py diff --git a/.gitignore b/.gitignore index 09be2a2..fb9467c 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ share/ MANIFEST dist/ .idea +.pytest_cache/ +pip-selfcheck.json diff --git a/dev_requirements.txt b/dev_requirements.txt index 5f665b7..f9e857c 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -3,7 +3,7 @@ codacy-coverage==1.2.18 ipython==4.2.0 mock==2.0.0 pudb==2016.1 -pytest==2.9.1 -pytest-cov==2.2.1 +pytest==3.4.2 +pytest-cov==2.5.1 requests==2.9.1 schedule==0.3.2 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 2aa118f..158a29d 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -24,7 +24,7 @@ class ConfigurationTest(unittest.TestCase): get_return = mock.Mock() get_return.ok = True 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 sys.modules['requests'].get = get