[grilo-plugins/wip/hadess/grl-net-wc-args-change] tmdb: Work-around mock URLs changing in tests



commit dcff2836f4428a8a42b8ea4b58843ed81db21b36
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 24 11:25:12 2019 +0100

    tmdb: Work-around mock URLs changing in tests
    
    The URLs generated by the TMDB plugin (via grl-net-wc, via libsoup)
    changed the ordering of some arguments in more recent versions. Add mock
    URLs that match those as well.

 tests/tmdb/data/no-details.ini | 3 +++
 tests/tmdb/data/sherlock.ini   | 3 +++
 2 files changed, 6 insertions(+)
---
diff --git a/tests/tmdb/data/no-details.ini b/tests/tmdb/data/no-details.ini
index b696950..60f2e33 100644
--- a/tests/tmdb/data/no-details.ini
+++ b/tests/tmdb/data/no-details.ini
@@ -9,6 +9,9 @@ data = configuration.txt
 [https://api.themoviedb.org/3/configuration?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY]
 data = configuration.txt
 
+[https://api.themoviedb.org/3/search/movie?api_key=TMDB_TEST_API_KEY&query=TMDBTestTitle]
+data = search.txt
+
 [https://api.themoviedb.org/3/search/movie?query=TMDBTestTitle&api_key=TMDB_TEST_API_KEY]
 data = search.txt
 
diff --git a/tests/tmdb/data/sherlock.ini b/tests/tmdb/data/sherlock.ini
index 0ae6b05..a029292 100644
--- a/tests/tmdb/data/sherlock.ini
+++ b/tests/tmdb/data/sherlock.ini
@@ -7,6 +7,9 @@ data = configuration.txt
 [https://api.themoviedb.org/3/configuration?api%5Fkey=TMDB%5FTEST%5FAPI%5FKEY]
 data = configuration.txt
 
+[https://api.themoviedb.org/3/search/movie?api_key=TMDB_TEST_API_KEY&query=Sherlock+Holmes]
+data = search.txt
+
 [https://api.themoviedb.org/3/search/movie?query=Sherlock+Holmes&api_key=TMDB_TEST_API_KEY]
 data = search.txt
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]