MCPcopy
hub / github.com/celery/celery / test_task_windows_execv

Method test_task_windows_execv

t/unit/app/test_app.py:180–191  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178
179 @pytest.mark.usefixtures('depends_on_current_app')
180 def test_task_windows_execv(self):
181 prev, _appbase.USING_EXECV = _appbase.USING_EXECV, True
182 try:
183 @self.app.task(shared=False)
184 def foo():
185 pass
186
187 assert foo._get_current_object() # is proxy
188
189 finally:
190 _appbase.USING_EXECV = prev
191 assert not _appbase.USING_EXECV
192
193 def test_task_takes_no_args(self):
194 with pytest.raises(TypeError):

Callers

nothing calls this directly

Calls 1

_get_current_objectMethod · 0.45

Tested by

no test coverage detected