Commit ac9bfeaf by Clinton Blackburn

Updated management command output text

ECOM-2655
parent 0edf50a6
......@@ -46,6 +46,6 @@ class Command(BaseCommand):
else:
self.stderr.write('No baskets to delete.')
else:
msg = 'This is a dry run. Had the --commit flag been included, [{}] baskets would have been deleted.'. \
format(count)
msg = 'This has been an example operation. If the --commit flag had been included, the command ' \
'would have deleted [{}] baskets.'.format(count)
self.stderr.write(msg)
......@@ -31,8 +31,8 @@ class DeleteOrderedBasketsCommandTests(TestCase):
self.assertEqual(Basket.objects.count(), expected)
# Verify the number of baskets expected to be deleted was printed to stderr
expected = 'This is a dry run. Had the --commit flag been included, [{}] baskets would have been deleted.'. \
format(len(self.orders))
expected = 'This has been an example operation. If the --commit flag had been included, the command ' \
'would have deleted [{}] baskets.'.format(len(self.orders))
self.assertEqual(out.getvalue().strip(), expected)
def test_with_commit(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment