From 461a0b3b7c14cd59cb53eb66f419c965ab3bdd24 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Sat, 15 Apr 2017 13:45:22 -0400 Subject: PLT-6113 Added initial unit tests for cmd package (#6086) * Fixed app.CreateUser not using the provided locale * Added initial unit tests for cmd package * Disabled unit tests while we move to 'go build' --- app/apptestlib.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/apptestlib.go') diff --git a/app/apptestlib.go b/app/apptestlib.go index f42529c20..0c7086c64 100644 --- a/app/apptestlib.go +++ b/app/apptestlib.go @@ -75,6 +75,14 @@ func (me *TestHelper) InitBasic() *TestHelper { return me } +func (me *TestHelper) MakeUsername() string { + return "un_" + model.NewId() +} + +func (me *TestHelper) MakeEmail() string { + return "success_" + model.NewId() + "@simulator.amazonses.com" +} + func (me *TestHelper) CreateTeam() *model.Team { id := model.NewId() team := &model.Team{ -- cgit v1.2.3-1-g7c22