From 39543555afd817962df5ce83f631891607837779 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 01:10:23 +0200 Subject: [PATCH] Add test for call_funciton --- InvenTree/plugin/samples/integration/test_scheduled_task.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/plugin/samples/integration/test_scheduled_task.py b/InvenTree/plugin/samples/integration/test_scheduled_task.py index 5be1dce250..9573d2fef5 100644 --- a/InvenTree/plugin/samples/integration/test_scheduled_task.py +++ b/InvenTree/plugin/samples/integration/test_scheduled_task.py @@ -47,6 +47,9 @@ class ExampleScheduledTaskPluginTests(TestCase): """check if a function can be called without errors""" self.assertEqual(call_function('schedule', 'member_func'), False) + # Check with wrong key + self.assertEqual(call_function('does_not_exsist', 'member_func'), '') + class ScheduledTaskPluginTests(TestCase): """ Tests for ScheduledTaskPluginTests mixin base """