Files
atlantis/server/events/command/name_test.go
Sarvar Muminov 90e92e3a13 chore: move CommandContext and CommandResult to models (#193) (#2093)
* Moved CommandContext and CommandResult to models (#193)

* Moved CommandContext and CommandResult to models

* move from models to command

rename CommandContext -> Context
rename CommandResult -> Result

* moved command related helpers into command package

* move ProjectCommandContext and ProjectResult to command/project package

* move project command context and project result

* revert unrelated code

* move tests

* fix left over

* fix linting

* fix tests

* remove unused import

* fix project context dependencies

* fix depenedecies

* fix typo
2022-03-21 10:36:13 -07:00

33 lines
578 B
Go

package command_test
import (
"testing"
"github.com/runatlantis/atlantis/server/events/command"
. "github.com/runatlantis/atlantis/testing"
)
func TestApplyCommand_String(t *testing.T) {
uc := command.Apply
Equals(t, "apply", uc.String())
}
func TestPlanCommand_String(t *testing.T) {
uc := command.Plan
Equals(t, "plan", uc.String())
}
func TestPolicyCheckCommand_String(t *testing.T) {
uc := command.PolicyCheck
Equals(t, "policy_check", uc.String())
}
func TestUnlockCommand_String(t *testing.T) {
uc := command.Unlock
Equals(t, "unlock", uc.String())
}