(ctx context.Context, t *testctx.T)
| 2011 | } |
| 2012 | |
| 2013 | func (PythonSuite) TestIgnoreConstructorArg(ctx context.Context, t *testctx.T) { |
| 2014 | c := connect(ctx, t) |
| 2015 | |
| 2016 | out, err := pythonModInit(t, c, ` |
| 2017 | from typing import Annotated |
| 2018 | import dagger |
| 2019 | |
| 2020 | @dagger.object_type |
| 2021 | class Test: |
| 2022 | source: Annotated[ |
| 2023 | dagger.Directory, |
| 2024 | dagger.DefaultPath("/"), |
| 2025 | dagger.Ignore([".venv"]), |
| 2026 | ] = dagger.field() |
| 2027 | `). |
| 2028 | With(daggerCall("source", "entries", "--json")). |
| 2029 | Stdout(ctx) |
| 2030 | |
| 2031 | require.NoError(t, err) |
| 2032 | require.Contains(t, gjson.Parse(out).Value(), "dagger.json") |
| 2033 | } |
| 2034 | |
| 2035 | func (PythonSuite) TestErrors(ctx context.Context, t *testctx.T) { |
| 2036 | c := connect(ctx, t) |
nothing calls this directly
no test coverage detected