17 lines
476 B
Go
17 lines
476 B
Go
package handlers_test
|
|
|
|
import (
|
|
"context"
|
|
"git.katuwoss.dev/JustScreaMy/secret-santa/internal/testhelpers"
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
// TODO: After having ability to configure database connection
|
|
func TestHandleGetUsers(t *testing.T) {
|
|
ctx := context.Background()
|
|
database, err := testhelpers.CreatePostgresContainer(ctx)
|
|
assert.NoError(t, err)
|
|
err = testhelpers.MigrateDatabase("postgres", database.ConnectionString)
|
|
assert.NoError(t, err)
|
|
}
|