fix test - len needs to be recalculated

This commit is contained in:
Matthias 2022-05-03 23:23:36 +02:00
parent e1b395c9be
commit 6504ef535a
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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