(self)
| 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): |
nothing calls this directly
no test coverage detected