Renamed ctx to conf in search test

This commit is contained in:
Theresa Gresch 2019-07-04 09:52:30 +02:00
parent 4e088ef7b7
commit 23e0dde0e3

View file

@ -8,13 +8,13 @@ import (
)
func TestSearch_Photos_Query(t *testing.T) {
ctx := config.TestConfig()
conf := config.TestConfig()
ctx.CreateDirectories()
conf.CreateDirectories()
ctx.InitializeTestData(t)
conf.InitializeTestData(t)
search := NewSearch(ctx.OriginalsPath(), ctx.Db())
search := NewSearch(conf.OriginalsPath(), conf.Db())
var form forms.PhotoSearchForm
@ -41,13 +41,13 @@ func TestSearch_Photos_Query(t *testing.T) {
}
func TestSearch_Photos_Camera(t *testing.T) {
ctx := config.TestConfig()
conf := config.TestConfig()
ctx.CreateDirectories()
conf.CreateDirectories()
ctx.InitializeTestData(t)
conf.InitializeTestData(t)
search := NewSearch(ctx.OriginalsPath(), ctx.Db())
search := NewSearch(conf.OriginalsPath(), conf.Db())
var form forms.PhotoSearchForm