monkeytestit tests: Use unittest.skipIf to disable tests on python < 3.5.
This commit is contained in:
parent
4900099763
commit
5d211b0c84
|
@ -1,13 +1,11 @@
|
||||||
import unittest
|
from unittest import mock, skipIf
|
||||||
from unittest import mock
|
|
||||||
|
from sys import version_info
|
||||||
|
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
from zulip_bots.test_lib import BotTestCase, DefaultTests
|
||||||
|
|
||||||
|
@skipIf(version_info[:2] < (3, 5), "monkeytestit requires python3.5+")
|
||||||
# TODO: Figure out a way to test bots that depends
|
|
||||||
# on the Python version of the environment.
|
|
||||||
@unittest.skip("Fails on Python3.4.")
|
|
||||||
class TestMonkeyTestitBot(BotTestCase, DefaultTests):
|
class TestMonkeyTestitBot(BotTestCase, DefaultTests):
|
||||||
bot_name = "monkeytestit"
|
bot_name = "monkeytestit"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue