mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add test for call_funciton
This commit is contained in:
parent
43179bbfd5
commit
39543555af
@ -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 """
|
||||
|
Loading…
Reference in New Issue
Block a user