This commit is contained in:
2026-08-13 21:38:42 +02:00
parent db1f341784
commit 260fe28ac0
6 changed files with 134 additions and 11 deletions
@@ -5,6 +5,14 @@ import (
"testing"
)
func TestParseOptionsRequiresPostgres(t *testing.T) {
t.Parallel()
_, err := parseOptions("", "a@b.com", "password1", "", false, true, "development")
if err == nil || !strings.Contains(err.Error(), "DATABASE_URL") {
t.Fatalf("err = %v, want DATABASE_URL required", err)
}
}
func TestParseOptionsRequiresConfirm(t *testing.T) {
t.Parallel()
_, err := parseOptions("postgres://x", "a@b.com", "password1", "", false, false, "development")