MCPcopy
hub / github.com/celery/celery / test_evcam

Method test_evcam

t/unit/events/test_snapshot.py:108–116  ·  view source on GitHub ↗
(self, restore_logging)

Source from the content-addressed store, hash-verified

106 self.app.events.app = self.app
107
108 def test_evcam(self, restore_logging):
109 evcam(Polaroid, timer=timer, app=self.app)
110 evcam(Polaroid, timer=timer, loglevel='CRITICAL', app=self.app)
111 self.MockReceiver.raise_keyboard_interrupt = True
112 try:
113 with pytest.raises(SystemExit):
114 evcam(Polaroid, timer=timer, app=self.app)
115 finally:
116 self.MockReceiver.raise_keyboard_interrupt = False
117
118 @patch('celery.platforms.create_pidlock')
119 def test_evcam_pidfile(self, create_pidlock):

Callers

nothing calls this directly

Calls 2

evcamFunction · 0.90
raisesMethod · 0.45

Tested by

no test coverage detected