aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user_create_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/user_create_test.go')
-rw-r--r--commands/user_create_test.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/commands/user_create_test.go b/commands/user_create_test.go
deleted file mode 100644
index 08958344..00000000
--- a/commands/user_create_test.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package commands
-
-import (
- "strings"
- "testing"
-
- "github.com/stretchr/testify/require"
-)
-
-const (
- testUserName = "John Doe"
- testUserEmail = "jdoe@example.com"
-)
-
-func newTestEnvAndUser(t *testing.T) (*testEnv, string) {
- t.Helper()
-
- testEnv := newTestEnv(t)
-
- opts := createUserOptions{
- name: testUserName,
- email: testUserEmail,
- avatarURL: "",
- nonInteractive: true,
- }
-
- require.NoError(t, runUserCreate(testEnv.env, opts))
-
- userID := strings.TrimSpace(testEnv.out.String())
- testEnv.out.Reset()
-
- return testEnv, userID
-}
-
-func TestUserCreateCommand(t *testing.T) {
- _, userID := newTestEnvAndUser(t)
- require.Regexp(t, "[0-9a-f]{64}", userID)
-}