mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
fix test - len needs to be recalculated
This commit is contained in:
parent
e1b395c9be
commit
6504ef535a
@ -34,6 +34,8 @@ class ExampleScheduledTaskPluginTests(TestCase):
|
||||
# delete middle task
|
||||
# this is to check the system also deals with disappearing tasks
|
||||
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)
|
||||
|
||||
# test unregistering
|
||||
|
Loading…
Reference in New Issue
Block a user