(ctx: Context)
| 329 | |
| 330 | |
| 331 | def test_user_sync_object(ctx: Context): |
| 332 | handler = _ObjectField( |
| 333 | ctx, |
| 334 | "sync", |
| 335 | Field(NonNull(Object("Foo", {})), {}), |
| 336 | Object("Foo", {}), |
| 337 | ) |
| 338 | assert str(handler) == dedent( |
| 339 | """ |
| 340 | def sync(self) -> Self: |
| 341 | _args: list[Arg] = [] |
| 342 | _ctx = self._select("sync", _args) |
| 343 | return Foo(_ctx) |
| 344 | """.rstrip() |
| 345 | ) |
| 346 | |
| 347 | |
| 348 | def test_func_doc_deprecated_args(ctx: Context): |
nothing calls this directly
no test coverage detected