diff --git a/library-le/game-index_test.go b/library-le/game-index_test.go index 61bc492..7a1f003 100644 --- a/library-le/game-index_test.go +++ b/library-le/game-index_test.go @@ -8,7 +8,7 @@ import ( ) func TestAvailability(t *testing.T) { - fileReader := loadTestData("game_search_example.html") + fileReader := loadTestData("testdata/game_search_example.html") games, _ := parseGameSearchResult(fileReader) diff --git a/library-le/search_test.go b/library-le/search_test.go index dc6edd7..6066ee5 100644 --- a/library-le/search_test.go +++ b/library-le/search_test.go @@ -7,7 +7,7 @@ import ( ) func TestParseMovieCopiesResult(t *testing.T) { - testResponse := loadTestData("movie_copies_example.html") + testResponse := loadTestData("testdata/movie_copies_example.html") movies := parseMovieCopiesPage("Terminator - Genesis", testResponse) Equal(t, 6, len(movies)) diff --git a/library-le/game_search_example.html b/library-le/testdata/game_search_example.html similarity index 100% rename from library-le/game_search_example.html rename to library-le/testdata/game_search_example.html diff --git a/library-le/movie_copies_example.html b/library-le/testdata/movie_copies_example.html similarity index 100% rename from library-le/movie_copies_example.html rename to library-le/testdata/movie_copies_example.html