package conga import ( "testing" "git.golem15.com/golem15/summercms/modules/backpack" "gorm.io/gorm" ) // DocsApp returns an app and its GORM handle on a fresh migrated database // of this package's Postgres harness, for the database-backed docs examples // in example_test.go. It skips under -short and fails when the harness has // no database, like the package's other database tests. func DocsApp(t *testing.T) (*backpack.App, *gorm.DB) { t.Helper() db, dsn := migratedDB(t) return testApp(t, db, dsn, nil) }