Added support for recent CPython and PyPy versions; Droped Python v2.7 Support (#680)

This commit is contained in:
Andreas Motl
2022-10-08 02:28:36 +02:00
committed by GitHub
parent f7244cce3d
commit 00afe4e5b6
164 changed files with 746 additions and 2787 deletions

View File

@ -24,14 +24,7 @@
# THE SOFTWARE.
import os
import six
try:
# Python 3.x
from unittest import mock
except ImportError:
# Python 2.7
import mock
from unittest import mock
import pytest
import requests
@ -262,7 +255,7 @@ def test_plugin_twitter_general(mock_post, mock_get):
targets=screen_name)
assert isinstance(obj, plugins.NotifyTwitter) is True
assert isinstance(obj.url(), six.string_types) is True
assert isinstance(obj.url(), str) is True
# apprise room was found
assert obj.send(body="test") is True