mirror of
https://github.com/caronc/apprise.git
synced 2025-08-17 20:11:40 +02:00
RHEL9 Support - Test cases to leverage unittest.mock when possible (#658)
This commit is contained in:
@@ -27,7 +27,14 @@ import os
|
||||
import six
|
||||
import sys
|
||||
import pytest
|
||||
import mock
|
||||
try:
|
||||
# Python 3.x
|
||||
from unittest import mock
|
||||
|
||||
except ImportError:
|
||||
# Python 2.7
|
||||
import mock
|
||||
|
||||
import requests
|
||||
from json import dumps
|
||||
from json import loads
|
||||
|
Reference in New Issue
Block a user