コード例 #1
0
 def setUp(self):
     Monitis.debug = True
     # find an existing transaction monitor
     res = trans.transaction_tests()
     if isinstance(res, list) and len(res) > 0:
         self.test_id = res[0]['id']
         self.test_ids = [x['id'] for x in res]
     else:
         self.test_id = None
コード例 #2
0
ファイル: test_transaction.py プロジェクト: SeanYa/Python-SDK
 def setUp(self):
     Monitis.debug = True
     # find an existing transaction monitor
     res = trans.transaction_tests()
     if isinstance(res, list) and len(res) > 0:
         self.test_id = res[0]['id']
         self.test_ids = [x['id'] for x in res]
     else:
         self.test_id = None
コード例 #3
0
 def test_transaction_tests(self):
     res = trans.transaction_tests()
     match = [x for x in res if x['id'] == self.test_id]
     assert len(match) > 0
コード例 #4
0
ファイル: test_transaction.py プロジェクト: SeanYa/Python-SDK
 def test_transaction_tests(self):
     res = trans.transaction_tests()
     match = [x for x in res if x['id'] == self.test_id]
     assert len(match) > 0