fix assertation

This commit is contained in:
Matthias 2022-05-16 23:51:17 +02:00
parent 9f3fdcb590
commit 3e859f7abb
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -67,7 +67,7 @@ class InvenTreeTaskTests(TestCase):
Success.objects.create(name='abc', func='abc', stopped=threshold, started=threshold_low)
InvenTree.tasks.offload_task(InvenTree.tasks.delete_successful_tasks)
results = Success.objects.filter(started__lte=threshold)
self.assertEqual(len(results, 0))
self.assertEqual(len(results), 0)
def test_task_delete_old_error_logs(self):
"""Test the task delete_old_error_logs"""