Use complete run inputs in removed flag tests
This commit is contained in:
@@ -32,9 +32,9 @@ func TestNativeMetadataWithoutConfiguration(t *testing.T) {
|
|||||||
|
|
||||||
func TestRemovedSourceAndSchemaFlagsAreRejected(t *testing.T) {
|
func TestRemovedSourceAndSchemaFlagsAreRejected(t *testing.T) {
|
||||||
nativePromptFixture(t, "http://127.0.0.1:1/v1")
|
nativePromptFixture(t, "http://127.0.0.1:1/v1")
|
||||||
for _, command := range [][]string{{"run", "support/summary"}, {"serve"}, {"config", "show"}, {"promptkit", "list", "prompts"}} {
|
for _, command := range [][]string{deliveryArgs(), {"serve", "--config=app.yml"}, {"config", "show", "--config=app.yml"}, {"promptkit", "list", "prompts", "--config=app.yml"}} {
|
||||||
for _, flag := range []string{"--promptkit-source=missing.yml", "--schema-dir=schemas"} {
|
for _, flag := range []string{"--promptkit-source=missing.yml", "--schema-dir=schemas"} {
|
||||||
args := append(append([]string{}, command...), "--config=app.yml", flag)
|
args := append(append([]string{}, command...), flag)
|
||||||
var output, diagnostics bytes.Buffer
|
var output, diagnostics bytes.Buffer
|
||||||
outcome := Execute(context.Background(), commandkit.Identity{Name: "scriptorium"}, args, &output, &diagnostics)
|
outcome := Execute(context.Background(), commandkit.Identity{Name: "scriptorium"}, args, &output, &diagnostics)
|
||||||
flagName := strings.SplitN(flag, "=", 2)[0]
|
flagName := strings.SplitN(flag, "=", 2)[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user