コード例 #1
0
ファイル: __init__.py プロジェクト: psyko0815/olympia
 def setUpClass(cls):
     if cls.mock_es:
         Mocked_ES.start()
     try:
         reset.send(None)  # Reset all the ES tasks on hold.
         super(MockEsMixin, cls).setUpClass()
     except Exception:
         # We need to unpatch here because tearDownClass will not be
         # called.
         if cls.mock_es:
             Mocked_ES.stop()
         raise
コード例 #2
0
 def setUpClass(cls):
     if cls.mock_es:
         Mocked_ES.start()
     try:
         reset.send(None)  # Reset all the ES tasks on hold.
         super(MockEsMixin, cls).setUpClass()
     except Exception:
         # We need to unpatch here because tearDownClass will not be
         # called.
         if cls.mock_es:
             Mocked_ES.stop()
         raise
コード例 #3
0
ファイル: __init__.py プロジェクト: almet/zamboni
 def setUpClass(cls):
     if cls.mock_es:
         start_es_mock()
     try:
         reset.send(None)  # Reset all the ES tasks on hold.
         super(TestCase, cls).setUpClass()
     except Exception:
         # We need to unpatch here because tearDownClass will not be
         # called.
         if cls.mock_es:
             stop_es_mock()
         raise
コード例 #4
0
 def setUpClass(cls):
     if cls.mock_es:
         start_es_mock()
     try:
         reset.send(None)  # Reset all the ES tasks on hold.
         super(TestCase, cls).setUpClass()
     except Exception:
         # We need to unpatch here because tearDownClass will not be
         # called.
         if cls.mock_es:
             stop_es_mock()
         raise
コード例 #5
0
ファイル: __init__.py プロジェクト: jespersh/zamboni
 def setUpClass(cls):
     if cls.mock_es:
         [p.start() for p in ES_patchers]
     reset.send(None)  # Reset all the ES tasks on hold.
     super(TestCase, cls).setUpClass()
コード例 #6
0
ファイル: __init__.py プロジェクト: superduper/zamboni
 def setUpClass(cls):
     if cls.mock_es:
         [p.start() for p in ES_patchers]
     reset.send(None)  # Reset all the ES tasks on hold.
     super(TestCase, cls).setUpClass()