@@ -36,7 +36,7 @@ func Test_deleteCmd(t *testing.T) {
36
36
{
37
37
name : "fails due to empty argument" ,
38
38
args : testutils.Args {
39
- Cmd : showCmd ,
39
+ Cmd : deleteCmd ,
40
40
Args : []string {"delete" },
41
41
Cfg : testutils.MockCfg {Responses : []mock.Response {
42
42
mock .SampleInternalError (),
@@ -49,7 +49,7 @@ func Test_deleteCmd(t *testing.T) {
49
49
{
50
50
name : "fails due to API error" ,
51
51
args : testutils.Args {
52
- Cmd : showCmd ,
52
+ Cmd : deleteCmd ,
53
53
Args : []string {
54
54
"delete" , "11111111111111111111111111111111" ,
55
55
},
@@ -64,7 +64,7 @@ func Test_deleteCmd(t *testing.T) {
64
64
{
65
65
name : "succeeds" ,
66
66
args : testutils.Args {
67
- Cmd : showCmd ,
67
+ Cmd : deleteCmd ,
68
68
Args : []string {
69
69
"delete" , "4e974d9476534d35b12fbdcfd0acee0a" ,
70
70
},
@@ -90,7 +90,7 @@ func Test_deleteCmd(t *testing.T) {
90
90
{
91
91
name : "succeeds with ignore associations" ,
92
92
args : testutils.Args {
93
- Cmd : showCmd ,
93
+ Cmd : deleteCmd ,
94
94
Args : []string {
95
95
"delete" , "4e974d9476534d35b12fbdcfd0acee0a" , "--ignore-associations" ,
96
96
},
@@ -118,6 +118,7 @@ func Test_deleteCmd(t *testing.T) {
118
118
t .Run (tt .name , func (t * testing.T ) {
119
119
testutils .RunCmdAssertion (t , tt .args , tt .want )
120
120
tt .args .Cmd .ResetFlags ()
121
+ defer initDeleteFlags ()
121
122
})
122
123
}
123
124
}
0 commit comments