(self)
| 499 | assert "<MyCall" in str(call) |
| 500 | |
| 501 | def includes_args_and_kwargs(self): |
| 502 | call = Call( |
| 503 | self.task, |
| 504 | args=("posarg1", "posarg2"), |
| 505 | # Single-key dict to avoid dict ordering issues |
| 506 | kwargs={"kwarg1": "val1"}, |
| 507 | ) |
| 508 | expected = "<Call 'mytask', args: ('posarg1', 'posarg2'), kwargs: {'kwarg1': 'val1'}>" # noqa |
| 509 | assert str(call) == expected |
| 510 | |
| 511 | def includes_aka_if_explicit_name_given(self): |
| 512 | call = Call(self.task, called_as="notmytask") |