summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2015-06-11 13:08:29 +0200
committerBastien Nocera <hadess@hadess.net>2015-06-11 13:12:25 +0200
commit5bb779ba7b76bb86de7a2cc9d6cbe044d996b285 (patch)
treed7c5122a3941d53c2a3e8e471600b67b03426b64 /tests
parentf631ed462bc5a6d89ff4adede09ca83631d163e6 (diff)
downloadgrilo-plugins-5bb779ba7b76bb86de7a2cc9d6cbe044d996b285.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/local-metadata/test_local_metadata.c5
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