Upped test to 100% and catching up on changelog

This commit is contained in:
Daniel Greenfeld 2015-08-09 08:00:24 -07:00
parent 21a12ee3f6
commit 2996576556
2 changed files with 26 additions and 3 deletions

View File

@ -2,12 +2,27 @@
All enhancements and patches to cookiecutter-django will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [2015-08-09]
### Added
- test coverage, bringing it to 100% (@pydanny)
## 2015-08-08
### Added
- Gitter badge (@pydanny)
### Changed
- Refactor of cookiecutter-django render tests (@burhan)
## [2015-08-06]
### Added
- More test coverage, up to 97% (@pydanny)
- Slight optimization to celery configuration (@jayfk)
## [2015-08-05]
### Added
- Sentry support (@burhan)
### Changed
- Maked the user object python 2 and 3 friendly (@pydanny)
- Made the user object python 2 and 3 friendly (@pydanny)
- When using maildump, pin gevent. (@audreyr)
- Updated coverage version. (@audreyr)

View File

@ -3,9 +3,17 @@ from test_plus.test import TestCase
class TestUser(TestCase):
def setUp(self):
self.user = self.make_user()
def test__str__(self):
user = self.make_user()
self.assertEqual(
user.username,
self.user.__str__(),
"testuser" # This is the default username for self.make_user()
)
def test_get_absolute_url(self):
self.assertEqual(
self.user.get_absolute_url(),
'/users/testuser/'
)