Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed unit tests in register.

  • Loading branch information...
commit 0e03eb595f249af872d059a2781bc68baf97ac7c 1 parent 7ca623c
@maxolasersquad authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 register/tests.py
View
11 register/tests.py
@@ -58,7 +58,8 @@ def setUp(self):
name='Product X',\
vendor=self.vendor,\
price=23.45,\
- taxable=True\
+ taxable=True,\
+ scalable=False
)
self.item.save()
def test_end_transaction(self):
@@ -107,10 +108,16 @@ def setUp(self):
name='Product X',\
vendor=self.vendor,\
price=23.45,\
- taxable=True\
+ taxable=True,\
+ scalable=False
)
self.item.save()
def test_line_item_total(self):
line_item = self.transaction.create_line_item(self.item, 2)
line_item.save()
self.assertEqual(line_item.total(), Decimal(46.90))
+ def test_can_cancel(self):
+ line_item = self.transaction.create_line_item(self.item, 2)
+ line_item.cancel()
+ line_item.save()
+ self.assertEqual(line_item.status, 'INACTIVE')
Please sign in to comment.
Something went wrong with that request. Please try again.