Fix API tests

This commit is contained in:
viktorstrate
2022-07-08 17:44:03 +02:00
parent 214aa389fb
commit 831e24f654
5 changed files with 22 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ package scanner_queue
import (
"context"
"flag"
"testing"
"github.com/photoview/photoview/api/graphql/models"
@@ -9,6 +10,9 @@ import (
"github.com/photoview/photoview/api/scanner/scanner_task"
)
var _ = flag.Bool("database", false, "run database integration tests")
var _ = flag.Bool("filesystem", false, "run filesystem integration tests")
func makeAlbumWithID(id int) *models.Album {
var album models.Album
album.ID = id