mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
fix test - len needs to be recalculated
This commit is contained in:
@ -34,6 +34,8 @@ class ExampleScheduledTaskPluginTests(TestCase):
|
|||||||
# delete middle task
|
# delete middle task
|
||||||
# this is to check the system also deals with disappearing tasks
|
# this is to check the system also deals with disappearing tasks
|
||||||
scheduled_plugin_tasks[1].delete()
|
scheduled_plugin_tasks[1].delete()
|
||||||
|
# there should be one less now
|
||||||
|
scheduled_plugin_tasks = Schedule.objects.filter(name__istartswith="plugin.")
|
||||||
self.assertEqual(len(scheduled_plugin_tasks), 2)
|
self.assertEqual(len(scheduled_plugin_tasks), 2)
|
||||||
|
|
||||||
# test unregistering
|
# test unregistering
|
||||||
|
Reference in New Issue
Block a user