mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add check for call function
This commit is contained in:
parent
5ea6a325ee
commit
70b108d813
@ -3,6 +3,7 @@
|
||||
from django.test import TestCase
|
||||
|
||||
from plugin import registry
|
||||
from plugin.registry import call_function
|
||||
|
||||
|
||||
class ScheduledTaskPluginTests(TestCase):
|
||||
@ -27,3 +28,7 @@ class ScheduledTaskPluginTests(TestCase):
|
||||
from django_q.models import Schedule
|
||||
scheduled_plugin_tasks = Schedule.objects.filter(name__istartswith="plugin.")
|
||||
self.assertEqual(len(scheduled_plugin_tasks), 3)
|
||||
|
||||
def test_calling(self):
|
||||
"""check if a function can be called without errors"""
|
||||
call_function('schedule', 'member_func')
|
||||
|
Loading…
Reference in New Issue
Block a user