mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Use new test libs
This commit is contained in:
parent
be2c2fab3f
commit
c5a7b68aac
1 changed files with 4 additions and 8 deletions
|
@ -4,14 +4,13 @@
|
|||
from __future__ import absolute_import
|
||||
import datetime
|
||||
|
||||
# Salt testing libs
|
||||
from salttesting import TestCase, skipIf
|
||||
from salttesting.helpers import ensure_in_syspath
|
||||
from salttesting.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch
|
||||
|
||||
# Salt libs
|
||||
from salt.beacons import telegram_bot_msg
|
||||
|
||||
# Salt testing libs
|
||||
from tests.support.unit import TestCase, skipIf
|
||||
from tests.support.mock import NO_MOCK, NO_MOCK_REASON, MagicMock, patch
|
||||
|
||||
# Third-party libs
|
||||
try:
|
||||
import telegram
|
||||
|
@ -20,9 +19,6 @@ except ImportError:
|
|||
HAS_TELEGRAM = False
|
||||
|
||||
|
||||
ensure_in_syspath('../../')
|
||||
|
||||
|
||||
@skipIf(not HAS_TELEGRAM, 'telegram is not available')
|
||||
@skipIf(NO_MOCK, NO_MOCK_REASON)
|
||||
class TelegramBotMsgBeaconTestCase(TestCase):
|
||||
|
|
Loading…
Add table
Reference in a new issue