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

@ -23,18 +23,10 @@
# 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
import sys
import types
import pytest
from unittest import mock
import apprise
from helpers import module_reload
from apprise.plugins.NotifyGnome import GnomeUrgency
@ -44,7 +36,6 @@ import logging
logging.disable(logging.CRITICAL)
@pytest.mark.skipif(sys.version_info.major <= 2, reason="Requires Python 3.x+")
def test_plugin_gnome_general():
"""
NotifyGnome() General Checks
@ -110,7 +101,7 @@ def test_plugin_gnome_general():
assert obj.enabled is True
# Test url() call
assert isinstance(obj.url(), six.string_types) is True
assert isinstance(obj.url(), str) is True
# test notifications
assert obj.notify(title='title', body='body',