Introduce models.Entity type

This commit is contained in:
Philipp Wolfer 2023-12-10 14:22:38 +01:00
parent a59a542967
commit c4587b80af
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
6 changed files with 18 additions and 9 deletions

View file

@ -23,6 +23,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uploadedlobster.com/scotty/internal/models"
"go.uploadedlobster.com/scotty/internal/storage"
"golang.org/x/oauth2"
)
@ -33,7 +34,7 @@ func TestTimestampUpdate(t *testing.T) {
source := "maloja"
target := "funkwhale"
entity := "loves"
entity := models.Loves
timestamp, err := db.GetImportTimestamp(source, target, entity)
require.NoError(t, err)
assert.Equal(t, time.Time{}, timestamp)