feat: implement settings refactor, system status, notifications, and pre-commit hooks

This commit is contained in:
Wikid82
2025-11-20 11:37:10 -05:00
parent 20d25d49f3
commit 56ab9486a4
30 changed files with 1315 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
package database
import (
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
func TestConnect(t *testing.T) {
// Test with memory DB
db, err := Connect("file::memory:?cache=shared")
assert.NoError(t, err)
assert.NotNil(t, db)
// Test with file DB
tempDir := t.TempDir()
dbPath := filepath.Join(tempDir, "test.db")
db, err = Connect(dbPath)
assert.NoError(t, err)
assert.NotNil(t, db)
}