(modPath string, args ...string)
| 2151 | } |
| 2152 | |
| 2153 | func daggerInitPythonAt(modPath string, args ...string) dagger.WithContainerFunc { |
| 2154 | execArgs := append([]string{"init", "--sdk=python"}, args...) |
| 2155 | if len(args) == 0 { |
| 2156 | execArgs = append(execArgs, "--name=test") |
| 2157 | } |
| 2158 | if modPath != "" { |
| 2159 | execArgs = append(execArgs, "--source="+modPath, modPath) |
| 2160 | } else { |
| 2161 | execArgs = append(execArgs, "--source=.") |
| 2162 | } |
| 2163 | return daggerExec(execArgs...) |
| 2164 | } |
| 2165 | |
| 2166 | func pipLockMod(t *testctx.T, c *dagger.Client, inc []string) dagger.WithContainerFunc { |
| 2167 | t.Helper() |
no test coverage detected