目前我正在使用py.测试运行测试并将跳过的测试定义为:
@pytest.mark.skipif(True, reason="blockchain.info support currently disabled")
class BlockChainBTCTestCase(CoinTestCase, unittest.TestCase):
...
@pytest.mark.skipif(is_slow_test_hostile(), reason="Running send + receive loop may take > 20 minutes")
def test_send_receive_external(self):
""" Test sending and receiving external transaction within the backend wallet.
如果我想将我的测试迁移到green,green是否提供相应的工具?在
是的!Green支持}。在
unittest
的内置unittest.skipIf(condition, reason)
函数,以及rest of the skip functions and exceptions类skip()
,skipUnless()
,和{请注意,这需要Python2.7或更高版本。在
相关问题 更多 >
编程相关推荐