Moved test files to testdata folder.

Changed the tests accordingly.
This commit is contained in:
Maxime
2015-07-23 09:35:46 +02:00
parent 2df30d186e
commit bc2feece4b
18 changed files with 18 additions and 9 deletions

View File

@ -101,7 +101,7 @@ func TestSort(t *testing.T) {
}
func TestBrowseTemplate(t *testing.T) {
tmpl, err := template.ParseFiles("photos.tpl")
tmpl, err := template.ParseFiles("testdata/photos.tpl")
if err != nil {
t.Fatalf("An error occured while parsing the template: %v", err)
}
@ -111,7 +111,7 @@ func TestBrowseTemplate(t *testing.T) {
t.Fatalf("Next shouldn't be called")
return 0, nil
}),
Root: ".",
Root: "./testdata",
Configs: []Config{
Config{
PathScope: "/photos",