Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAssertMailhooksReady(t *testing.T) {
|
||||
t.Parallel()
|
||||
if err := assertMailhooksReady(true, false, true); err != nil {
|
||||
t.Fatalf("dry-run should always allow: %v", err)
|
||||
}
|
||||
if err := assertMailhooksReady(false, false, true); err == nil {
|
||||
t.Fatal("expected EMAIL_DRY_RUN block")
|
||||
}
|
||||
if err := assertMailhooksReady(false, false, false); err == nil {
|
||||
t.Fatal("expected SMTP disabled block")
|
||||
}
|
||||
if err := assertMailhooksReady(false, true, false); err != nil {
|
||||
t.Fatalf("live SMTP should allow: %v", err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user