Implement session and system tests

This commit is contained in:
2024-11-25 21:44:43 +01:00
parent 9ac047d440
commit 32bd202d6f
9 changed files with 520 additions and 10 deletions

View File

@@ -8,11 +8,6 @@ import (
_ "github.com/mattn/go-sqlite3"
)
type mockSecrets struct{}
func (m *mockSecrets) Encrypt(s string) (string, error) { return s, nil }
func (m *mockSecrets) Decrypt(s string) (string, error) { return s, nil }
func TestMigrate(t *testing.T) {
database, err := db.NewTestDB(":memory:", &mockSecrets{})
if err != nil {