From 0ae332323c6710a68601c1a1f28499408eb1a321 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 2 Mar 2023 17:17:13 +0100 Subject: Fix test for command call --- ishtar_common/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ishtar_common/tests.py') diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index d15675769..e7e665a6f 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -271,8 +271,9 @@ class CommandsTestCase(TestCase): ) parcel_nb = Parcel.objects.count() out = StringIO() - call_command("clean_ishtar", stdout=out) - # no operation or file attached - the parcel should have disappear + call_command("ishtar_maintenance", "fix_missing_parcels", "--clean", "--test", + stdout=out) + # no operation or file attached - the parcel should have disappeared self.assertEqual(parcel_nb - 1, Parcel.objects.count()) self.assertEqual(Parcel.objects.filter(pk=p.pk).count(), 0) -- cgit v1.2.3