(self)
| 58 | assert self.task1.body.called |
| 59 | |
| 60 | def kwargs(self): |
| 61 | k = {"foo": "bar"} |
| 62 | self.executor.execute(("task1", k)) |
| 63 | args = self.task1.body.call_args[0] |
| 64 | kwargs = self.task1.body.call_args[1] |
| 65 | assert isinstance(args[0], Context) |
| 66 | assert len(args) == 1 |
| 67 | assert kwargs["foo"] == "bar" |
| 68 | |
| 69 | def contextualized_tasks_are_given_parser_context_arg(self): |
| 70 | self.executor.execute("contextualized") |