From 3e859f7abbcc0ba0b8bbc2815b087ad999706043 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 16 May 2022 23:51:17 +0200 Subject: [PATCH] fix assertation --- InvenTree/InvenTree/test_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/test_tasks.py b/InvenTree/InvenTree/test_tasks.py index bbcf7a4799..0b6cd08ae1 100644 --- a/InvenTree/InvenTree/test_tasks.py +++ b/InvenTree/InvenTree/test_tasks.py @@ -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"""