photoprism/internal/api/geo_test.go

20 lines
316 B
Go
Raw Normal View History

2020-02-02 18:41:36 +01:00
package api
import (
"net/http"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetGeo(t *testing.T) {
t.Run("get geo", func(t *testing.T) {
app, router, _ := NewApiTest()
2020-02-02 18:41:36 +01:00
GetGeo(router)
2020-02-02 18:41:36 +01:00
result := PerformRequest(app, "GET", "/api/v1/geo")
assert.Equal(t, http.StatusOK, result.Code)
})
}