This commit is contained in:
greeneclipse committed 2026-08-13 21:38:42 +02:00
1 parent db1f341784
commit 260fe28ac0
6 files changed
+134 -11

No files matched your search

@@ -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")