Use new test libs

This commit is contained in:
Rafael Caricio 2017-03-07 11:40:10 +01:00
parent be2c2fab3f
commit c5a7b68aac
No known key found for this signature in database
GPG key ID: 9C7C434104692F3B

View file

@ -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):