[grilo-plugins] tests: Fix lua title parser tests not being run



commit 5bb779ba7b76bb86de7a2cc9d6cbe044d996b285
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 11 13:08:29 2015 +0200

    tests: Fix lua title parser tests not being run
    
    We were still running the tests against the local-metadata source,
    instead of the one passed to test_episodes_by_source(), and make sure to
    pass the title parser's source name, not the lua factory plugin's ID.

 tests/local-metadata/test_local_metadata.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/local-metadata/test_local_metadata.c b/tests/local-metadata/test_local_metadata.c
index 896f65b..79ea633 100644
--- a/tests/local-metadata/test_local_metadata.c
+++ b/tests/local-metadata/test_local_metadata.c
@@ -24,6 +24,7 @@
 
 #define LOCAL_METADATA_ID "grl-local-metadata"
 #define LUA_FACTORY_ID "grl-lua-factory"
+#define VIDEO_TITLE_PARSING_ID "grl-video-title-parsing"
 
 static void
 test_setup (void)
@@ -116,7 +117,7 @@ test_episodes_by_source (const gchar *source_name,
   };
 
   registry = grl_registry_get_default ();
-  source = grl_registry_lookup_source (registry, "grl-local-metadata");
+  source = grl_registry_lookup_source (registry, source_name);
   g_assert (source);
 
   for (i = 0; i < G_N_ELEMENTS(episode_tests); i++) {
@@ -148,7 +149,7 @@ test_episodes (void)
 static void
 test_episodes_lua (void)
 {
-  test_episodes_by_source (LUA_FACTORY_ID, FALSE);
+  test_episodes_by_source (VIDEO_TITLE_PARSING_ID, FALSE);
 }
 
 static void


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