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

Function test_user_sync_object

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

Source from the content-addressed store, hash-verified

329
330
331def 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
348def test_func_doc_deprecated_args(ctx: Context):

Callers

nothing calls this directly

Calls 4

_ObjectFieldClass · 0.90
NonNullFunction · 0.85
FieldClass · 0.50
ObjectClass · 0.50

Tested by

no test coverage detected