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

Function test_optionals_in_input_fields

sdk/python/tests/client/test_integration.py:72–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72async def test_optionals_in_input_fields():
73 svc = dag.host().service([dagger.PortForward(8000)])
74 field = svc._ctx.selections.pop()
75 assert field.args == {"ports": [{"backend": 8000}]}
76
77
78@pytest.mark.parametrize("val", ["spam", ""])

Callers

nothing calls this directly

Calls 3

hostMethod · 0.80
PortForwardMethod · 0.80
serviceMethod · 0.45

Tested by

no test coverage detected