(ctx: Context)
| 308 | |
| 309 | |
| 310 | def test_user_sync_leaf(ctx: Context): |
| 311 | handler = _ObjectField( |
| 312 | ctx, |
| 313 | "sync", |
| 314 | Field(NonNull(String), {}), |
| 315 | Object("Foo", {}), |
| 316 | ) |
| 317 | |
| 318 | assert handler.func_signature() == "async def sync(self) -> str:" |
| 319 | |
| 320 | assert str(handler.func_body()).endswith( |
| 321 | dedent( |
| 322 | """ |
| 323 | _args: list[Arg] = [] |
| 324 | _ctx = self._select("sync", _args) |
| 325 | return await _ctx.execute(str) |
| 326 | """.rstrip() |
| 327 | ) |
| 328 | ) |
| 329 | |
| 330 | |
| 331 | def test_user_sync_object(ctx: Context): |
nothing calls this directly
no test coverage detected