summaryrefslogtreecommitdiff
path: root/ishtar_common/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-02 17:17:13 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-03-02 17:17:13 +0100
commit0ae332323c6710a68601c1a1f28499408eb1a321 (patch)
treea71db0c7433170f518c2e67dcf92e5c1105a0cb1 /ishtar_common/tests.py
parente84473ef8a97229d26dd20d245e0e38eeb47529e (diff)
downloadIshtar-0ae332323c6710a68601c1a1f28499408eb1a321.tar.bz2
Ishtar-0ae332323c6710a68601c1a1f28499408eb1a321.zip
Fix test for command call
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r--ishtar_common/tests.py5
1 files changed, 3 insertions, 2 deletions
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)