Skip to content

Commit

Permalink
Use new test libs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcaricio committed Mar 7, 2017
1 parent be2c2fa commit c5a7b68
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/unit/beacons/test_telegram_bot_msg_beacon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,9 +19,6 @@
HAS_TELEGRAM = False


ensure_in_syspath('../../')


@skipIf(not HAS_TELEGRAM, 'telegram is not available')
@skipIf(NO_MOCK, NO_MOCK_REASON)
class TelegramBotMsgBeaconTestCase(TestCase):
Expand Down

0 comments on commit c5a7b68

Please sign in to comment.