[grilo-plugins] Revert "tests: fix url for mocked content in thegamesdb"



commit 53a2bccb6a623c985cf5a7e558fe52a7c5fbb0d8
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 24 19:14:27 2017 +0200

    Revert "tests: fix url for mocked content in thegamesdb"
    
    This reverts commit a93945beb7da8b9334855e67a3f8610c665d26a3.
    
    The test is supposed to lookup a Game Gear game, as can be seen
    from the contents of the results file.
    
    Not remembering the original reason for that test case (probably
    accents :), make it be a test for Game Gear mime-type support
    in the Games DB code.

 src/lua-factory/sources/grl-thegamesdb.lua |    3 ++-
 tests/games/data/network-data.ini          |    2 +-
 tests/games/test_games.c                   |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/lua-factory/sources/grl-thegamesdb.lua b/src/lua-factory/sources/grl-thegamesdb.lua
index 97e4e54..f492f87 100644
--- a/src/lua-factory/sources/grl-thegamesdb.lua
+++ b/src/lua-factory/sources/grl-thegamesdb.lua
@@ -221,8 +221,9 @@ function get_platform_name(mime_type, suffix)
     platform_names['application/x-playstation-rom'] = 'Sony Playstation'
     platform_names['application/x-saturn-rom'] = 'Sega Saturn'
     platform_names['application/x-sega-cd-rom'] = 'Sega CD'
-    -- Also represents 'Sega Game Gear'
+    -- Also represents 'Sega Game Gear' through magic
     platform_names['application/x-sms-rom'] = 'Sega Master System'
+    platform_names['application/x-gamegear-rom'] = 'Sega Game Gear'
     platform_names['application/x-wii-rom'] = 'Nintendo Wii'
     platform_names['application/x-wii-wad'] = 'Nintendo Wii'
 
diff --git a/tests/games/data/network-data.ini b/tests/games/data/network-data.ini
index ef4f080..2e1dd5d 100644
--- a/tests/games/data/network-data.ini
+++ b/tests/games/data/network-data.ini
@@ -25,7 +25,7 @@ data=resolve-sonic-sms.data
 [http://thegamesdb.net/api/GetGame.php?id=3016]
 data=resolve-getgame-sonic-sms.data
 
-[http://thegamesdb.net/api/GetGamesList.php?name=Ast%C3%A9rix&platform=PC]
+[http://thegamesdb.net/api/GetGamesList.php?name=Ast%C3%A9rix&platform=Sega%20Game%20Gear]
 data=resolve-asterix.data
 
 [http://thegamesdb.net/api/GetGame.php?id=11837]
diff --git a/tests/games/test_games.c b/tests/games/test_games.c
index 4220ab5..b771dd8 100644
--- a/tests/games/test_games.c
+++ b/tests/games/test_games.c
@@ -191,7 +191,7 @@ test_resolve_thumbnails_found (void)
 
   test_resolve_thumbnail_found (source, keys, options,
                                 "Astérix",
-                                "",
+                                "application/x-gamegear-rom",
                                 NULL,
                                 0,
                                 "http://thegamesdb.net/banners/boxart/original/front/11837-1.jpg";);


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