mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Add test to reproduce NoneType exception from #171
This commit is contained in:
@@ -4,6 +4,14 @@ from datetime import date, timedelta
|
||||
from decimal import *
|
||||
|
||||
|
||||
class ProfileTestCase(TestCase):
|
||||
def test_str(self):
|
||||
profile = models.Profile(first_name='Test', last_name='Case')
|
||||
self.assertEqual(profile.name, 'Test Case')
|
||||
profile.initials = 'TC'
|
||||
self.assertEqual(profile.name, 'Test Case "TC"')
|
||||
|
||||
|
||||
class VatRateTestCase(TestCase):
|
||||
def setUp(self):
|
||||
models.VatRate.objects.create(start_at='2014-03-01', rate=0.20, comment='test1')
|
||||
|
||||
Reference in New Issue
Block a user