mirror of
https://github.com/caronc/apprise.git
synced 2025-08-14 10:28:38 +02:00
Added support for recent CPython and PyPy versions; Droped Python v2.7 Support (#680)
This commit is contained in:
@ -23,14 +23,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
import six
|
||||
try:
|
||||
# Python 3.x
|
||||
from unittest import mock
|
||||
|
||||
except ImportError:
|
||||
# Python 2.7
|
||||
import mock
|
||||
from unittest import mock
|
||||
|
||||
import requests
|
||||
from apprise import plugins
|
||||
@ -148,7 +141,7 @@ def test_plugin_nextcloudtalk_edge_cases(mock_post):
|
||||
obj = plugins.NotifyNextcloudTalk(
|
||||
host="localhost", user="admin", password="pass", targets="roomid")
|
||||
assert isinstance(obj, plugins.NotifyNextcloudTalk) is True
|
||||
assert isinstance(obj.url(), six.string_types) is True
|
||||
assert isinstance(obj.url(), str) is True
|
||||
|
||||
# An empty body
|
||||
assert obj.send(body="") is True
|
||||
|
Reference in New Issue
Block a user