Skip to content

Commit

Permalink
#62 Prepare for versioned release
Browse files Browse the repository at this point in the history
  • Loading branch information
docktermj committed Jun 12, 2024
1 parent 9b6afa2 commit f633633
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
*/
func Test_Execute(test *testing.T) {
_ = test
os.Args = []string{"command-name", "--message-id", "SZSDK60010000"}
os.Args = []string{"command-name", "--message-id", "SZSDK60010000", "--tty-only"}
Execute()
}

Expand All @@ -35,7 +35,7 @@ func Test_Execute_docs(test *testing.T) {

func Test_PreRun(test *testing.T) {
_ = test
args := []string{"command-name", "--message-id", "SZSDK60010000"}
args := []string{"command-name", "--message-id", "SZSDK60010000", "--tty-only"}
PreRun(RootCmd, args)
}

Expand Down
1 change: 0 additions & 1 deletion explainer/explainer_null_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
func TestNullExplainer(test *testing.T) {
ctx := context.TODO()
testObject := &NullExplainer{}
// os.Args = []string{"command-name", "--message-id", "SZSDK60010000"}
err := testObject.Explain(ctx)
assert.NoError(test, err)
}
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import (
*/
func TestMain(test *testing.T) {
_ = test
os.Args = []string{"command-name", "--message-id", "SZSDK60010000"}
os.Args = []string{"command-name", "--message-id", "SZSDK60010000", "--tty-only"}
main()
}

0 comments on commit f633633

Please sign in to comment.