From 4098933cf656eab34ed1c1eb806d533f9548453e Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Wed, 21 Dec 2011 14:25:21 -0500 Subject: [PATCH] Added a method to drop all the transactions to help with testing --- campaigntest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/campaigntest.py b/campaigntest.py index 5fb515c4..935f5a87 100644 --- a/campaigntest.py +++ b/campaigntest.py @@ -30,6 +30,9 @@ def execute_campaigns(clist): def finish_campaigns(clist): return [pm.finish_campaign(c) for c in clist] +def drop_all_transactions(): + Transaction.objects.all().delete() + # by the time we've executed a campaign, we should have r.status = 'COMPLETED' for primary but None for secondary # [[[r.status for r in t.receiver_set.all()] for t in c.transaction_set.all()] for c in campaigns_incomplete()]