Skip to content

Commit

Permalink
Fixed test and PEP error
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 6, 2016
1 parent 3ca853e commit 3996b47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions casepro/msgs/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def test_save(self):
setattr(message, '__data__labels', [("L-001", "Spam")])
message.save()

# check removing a group and adding new ones
with self.assertNumQueries(6):
# check removing a label and adding new ones
with self.assertNumQueries(10):
setattr(message, '__data__labels', [("L-002", "Feedback"), ("L-003", "Important")])
message.save()

Expand Down
1 change: 0 additions & 1 deletion casepro/statistics/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ def record_incoming_labelling(sender, instance, action, reverse, model, pk_set,
elif action == 'pre_clear':
for label in instance.labels.all():
DailyCount.record_removal(day, DailyCount.TYPE_INCOMING, label)

0 comments on commit 3996b47

Please sign in to comment.