mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Introduce models.Entity type
This commit is contained in:
parent
a59a542967
commit
c4587b80af
6 changed files with 18 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue