aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user_create_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-09-10 11:09:19 +0200
committerMichael Muré <batolettre@gmail.com>2022-11-20 17:18:09 +0100
commitacc9a6f3a6df2961c3ae44352216d915cb9b5315 (patch)
treee159372673104ade1f15ddc1a84aa9da93e93552 /commands/user_create_test.go
parenta3fa445a9c76631c4cd16f93e1c1c68a954adef7 (diff)
downloadgit-bug-acc9a6f3a6df2961c3ae44352216d915cb9b5315.tar.gz
commands: reorg into different packages
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)
-}