chore: remove cached

This commit is contained in:
Wikid82
2025-11-24 18:21:11 +00:00
parent 5b041819bb
commit 9c842e7eab
394 changed files with 0 additions and 44139 deletions

View File

@@ -1,26 +0,0 @@
package models_test
import (
"testing"
"github.com/Wikid82/CaddyProxyManagerPlus/backend/internal/models"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
func TestNotificationProvider_BeforeCreate(t *testing.T) {
db, err := gorm.Open(sqlite.Open("file::memory:"), &gorm.Config{})
require.NoError(t, err)
require.NoError(t, db.AutoMigrate(&models.NotificationProvider{}))
provider := models.NotificationProvider{
Name: "Test",
}
err = db.Create(&provider).Error
require.NoError(t, err)
assert.NotEmpty(t, provider.ID)
// Check defaults if any (currently none enforced in BeforeCreate other than ID)
}