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

Function test_function_check_metadata

sdk/python/tests/mod/test_registration.py:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def test_function_check_metadata():
73 mod = Module()
74
75 @mod.object_type
76 class Foo:
77 @mod.function
78 @mod.check
79 def lint(self):
80 """Check function."""
81
82 fn = mod.get_object("Foo").functions["lint"]
83 assert fn.check is True
84
85
86def test_function_check_default_false():

Callers

nothing calls this directly

Calls 2

get_objectMethod · 0.95
ModuleClass · 0.90

Tested by

no test coverage detected