diff options
author | Alexander Mazuruk <a.mazuruk@samsung.com> | 2021-03-26 16:18:03 +0100 |
---|---|---|
committer | Alexander Mazuruk <a.mazuruk@samsung.com> | 2021-04-09 12:22:19 +0200 |
commit | 3129229fc850ad8039b2241f389cd5f6fe28f840 (patch) | |
tree | 032e8c30e3b54a3f5a3592005cad539aad77be07 /tests/test_binding.py | |
parent | f811f3c845fdd38ce2ad740be8331d28ddd32945 (diff) |
Dependencies update: Wheel, PyYAML, httplib2, HTTPretty
Changelogs of updated pkgs:
https://wheel.readthedocs.io/en/stable/news.html
https://github.com/yaml/pyyaml/blob/master/CHANGES
https://github.com/httplib2/httplib2/blob/master/CHANGELOG
https://httpretty.readthedocs.io/en/latest/changelog.html
Additionally resolved some warnings reported by tox:
- remove unused func from tests that used deprecated python lib.
- change collections import to collections.abc
Issue-ID: DCAEGEN2-2720
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: I1dadbe9e6e410bdec1a06ea7c69e49576551218b
Diffstat (limited to 'tests/test_binding.py')
-rw-r--r-- | tests/test_binding.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/test_binding.py b/tests/test_binding.py index 170e8b1..25ab192 100644 --- a/tests/test_binding.py +++ b/tests/test_binding.py @@ -1,6 +1,7 @@ # ============LICENSE_START======================================================= # Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. # Copyright (c) 2019 Pantheon.tech. All rights reserved. +# Copyright 2021 Samsung Electronics. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -25,7 +26,6 @@ import pytest import json import base64 import errno -import imp import time from pip._internal import main as _main from onap_dcae_cbs_docker_client.client import get_config @@ -37,15 +37,6 @@ import unittest MODULE_EXTENSIONS = ('.py', '.pyc', '.pyo') -def package_contents(package_name): - file, pathname, description = imp.find_module(package_name) - if file: - raise ImportError('Not a package: %r', package_name) - # Use a set because some may be both source and compiled. - return set([os.path.splitext(module)[0] - for module in os.listdir(pathname) - if module.endswith(MODULE_EXTENSIONS)]) - ##### # MONKEYPATCHES ##### |