python: fix key args in tests
@@ -50,7 +50,7 @@ static void test_variable_passing (void)
KeySet * conf = ksNew (1, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin.py"), KEY_END),
keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/print", KEY_END),
- keyNew ("user/python/path", ".", KEY_END), KS_END);
+ keyNew ("user/python/path", KEY_VALUE, ".", KEY_END), KS_END);
PLUGIN_OPEN (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME));
Key * parentKey = keyNew ("user/from_c", KEY_END);
@@ -74,11 +74,11 @@ static void test_two_scripts (void)
elektraModulesInit (modules, 0);
KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin.py"), KEY_END),
- keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END),
+ keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);
KeySet * conf2 = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin2.py"), KEY_END),
- keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END),
+ keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);
Key * errorKey = keyNew ("", KEY_END);
@@ -107,7 +107,7 @@ static void test_fail (void)
printf ("Testing return values from python functions...\n");
KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin_fail.py"), KEY_END),
- keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END),
+ keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);
PLUGIN_OPEN (ELEKTRA_STRINGIFY (PYTHON_PLUGIN_NAME));
@@ -133,7 +133,7 @@ static void test_wrong (void)
elektraModulesInit (modules, 0);
KeySet * conf = ksNew (2, keyNew ("user/script", KEY_VALUE, python_file ("python_plugin_wrong.py"), KEY_END),
- keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", ".", KEY_END),
+ keyNew ("user/shutdown", KEY_VALUE, "1", KEY_END), keyNew ("user/python/path", KEY_VALUE, ".", KEY_END),
keyNew ("user/print", KEY_END), KS_END);
Key * errorKey = keyNew ("", KEY_END);
