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