diff --git a/pymaven/constants.py b/pymaven/constants.py index e0ade6a..ed06109 100644 --- a/pymaven/constants.py +++ b/pymaven/constants.py @@ -15,7 +15,7 @@ # -VERSION = (0, 1, 0) +VERSION = (0, 2, 0) def get_version(): return '.'.join(str(v) for v in VERSION) diff --git a/requirements.txt b/requirements.txt index 5df8423..8cbed91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -lxml==3.4.4 -requests==2.7.0 +lxml>=3.4.4,<4.0.0 +requests>=2.7.0,<3.0.0 diff --git a/tests/test_client.py b/tests/test_client.py index e836f78..2c7b1c4 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -82,13 +82,16 @@ def test_get_artifact(self, _LocalRepository): _repo.exists.assert_called_with("foo/bar/2.0.0/bar-2.0.0.jar") _repo.open.assert_called_with("foo/bar/2.0.0/bar-2.0.0.jar") + _repo.reset_mock() self.assertRaises(MissingArtifactError, client.get_artifact, "foo:bar:3.0") _repo.exists.assert_called_with("foo/bar/3.0/bar-3.0.jar") _repo.open.assert_not_called() + _repo.reset_mock() self.assertRaises(AssertionError, client.get_artifact, "foo:bar:[1.0,2.0]") + _repo.open.assert_not_called() @mock.patch("pymaven.client.HttpRepository._request")