mirror of
https://github.com/caronc/apprise.git
synced 2025-08-09 16:35:07 +02:00
RHEL9 Support - Test cases to leverage unittest.mock when possible (#658)
This commit is contained in:
@ -25,7 +25,14 @@
|
||||
|
||||
import os
|
||||
import six
|
||||
import mock
|
||||
try:
|
||||
# Python 3.x
|
||||
from unittest import mock
|
||||
|
||||
except ImportError:
|
||||
# Python 2.7
|
||||
import mock
|
||||
|
||||
from helpers import module_reload
|
||||
|
||||
import apprise
|
||||
|
Reference in New Issue
Block a user