Implement database integration tests

This commit is contained in:
viktorstrate
2021-04-23 15:10:23 +02:00
parent dc8325bd4a
commit 60f8a68bf6
10 changed files with 281 additions and 53 deletions

View File

@@ -2,19 +2,23 @@ package exif
import (
"fmt"
"os"
"path"
"testing"
"time"
"github.com/barasher/go-exiftool"
"github.com/photoview/photoview/api/graphql/models"
"github.com/photoview/photoview/api/test_utils"
"github.com/stretchr/testify/assert"
)
func TestMain(m *testing.M) {
os.Exit(test_utils.IntegrationTestRun(m))
}
func TestExifParsers(t *testing.T) {
if testing.Short() {
t.Skip("skipping integration test")
}
test_utils.FilesystemTest(t)
parsers := []struct {
name string