Skip to content

Commit

Permalink
Merge pull request #100 from nledez/upgrade-coverage-and-osx-support
Browse files Browse the repository at this point in the history
Upgrade coverage and OSX support
  • Loading branch information
rbeuque74 authored Mar 14, 2022
2 parents 159cf51 + e438901 commit 7ecba81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ install:
- pip install -e .[dev]
script:
- nosetests
- coverage report -m
- python setup.py sdist bdist_wheel && pip install dist/ovh-*.tar.gz && cd /tmp && python -c 'import ovh; ovh.Client("ovh-eu").get("/auth/time", _need_auth=False)' && cd -
deploy:
provider: pypi
Expand Down
4 changes: 2 additions & 2 deletions ovh/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def __init__(self, *args, **kwargs):
super(APIError, self).__init__(*args, **kwargs)

def __str__(self):
if self.query_id:
if self.query_id: # pragma: no cover
return "{} \nOVH-Query-ID: {}".format(super(APIError, self).__str__(), self.query_id)
else:
else: # pragma: no cover
return super(APIError, self).__str__()

class HTTPError(APIError):
Expand Down
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ exclude =

[options.extras_require]
dev =
coverage>=5.0.3
coverage==5.5
mock==1.0.1
# nose >= 1.3.4 is not compatible with Python 3.10 due to collections.Callable
nose==1.3.3
yanc==0.2.4
Sphinx==1.2.2
coveralls==0.4.4
coveralls==3.2.0
setuptools>=30.3.0
wheel
test =
coverage>=5.0.3
coverage==5.5
mock==1.0.1
# nose >= 1.3.4 is not compatible with Python 3.10 due to collections.Callable
nose==1.3.3
yanc==0.2.4

Expand Down

0 comments on commit 7ecba81

Please sign in to comment.