feat: fix tests
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 3m3s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 2m23s

This commit was merged in pull request #3.
This commit is contained in:
2025-05-04 16:14:05 +02:00
parent b20a48be25
commit 7bda5237e3
4 changed files with 582 additions and 10 deletions

View File

@@ -1,17 +1,17 @@
package db
import (
"database/sql"
"spend-sparrow/types"
"testing"
"time"
"github.com/google/uuid"
"github.com/jmoiron/sqlx"
"github.com/stretchr/testify/assert"
)
func setupDb(t *testing.T) *sql.DB {
db, err := sql.Open("sqlite3", ":memory:")
func setupDb(t *testing.T) *sqlx.DB {
db, err := sqlx.Open("sqlite3", ":memory:")
if err != nil {
t.Fatalf("Error opening database: %v", err)
}