MCPcopy Create free account
hub / github.com/dagger/dagger / test_user_sync_leaf

Function test_user_sync_leaf

sdk/python/tests/codegen/test_generator.py:310–328  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

308
309
310def 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
331def test_user_sync_object(ctx: Context):

Callers

nothing calls this directly

Calls 6

_ObjectFieldClass · 0.90
NonNullFunction · 0.85
func_signatureMethod · 0.80
func_bodyMethod · 0.80
FieldClass · 0.50
ObjectClass · 0.50

Tested by

no test coverage detected