Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/python_http_client/__init__.py: 89%
7 statements
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
« prev ^ index » next coverage.py v6.4.4, created at 2023-07-17 14:22 -0600
1import os
3from .client import Client # noqa
4from .exceptions import ( # noqa
5 HTTPError,
6 BadRequestsError,
7 UnauthorizedError,
8 ForbiddenError,
9 NotFoundError,
10 MethodNotAllowedError,
11 PayloadTooLargeError,
12 UnsupportedMediaTypeError,
13 TooManyRequestsError,
14 InternalServerError,
15 ServiceUnavailableError,
16 GatewayTimeoutError
17)
20dir_path = os.path.dirname(os.path.realpath(__file__))
21if os.path.isfile(os.path.join(dir_path, 'VERSION.txt')): 21 ↛ exitline 21 didn't exit the module, because the condition on line 21 was never false
22 with open(os.path.join(dir_path, 'VERSION.txt')) as version_file:
23 __version__ = version_file.read().strip()