RHEL9 Support - Test cases to leverage unittest.mock when possible (#658)

This commit is contained in:
Chris Caron
2022-08-31 20:05:40 -04:00
committed by GitHub
parent 782f2e602b
commit 2d5ab59252
69 changed files with 557 additions and 69 deletions

View File

@ -22,7 +22,14 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
import mock
try:
# Python 3.x
from unittest import mock
except ImportError:
# Python 2.7
import mock
import pytest
import requests
from apprise import plugins