mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 05:04:25 +03:00
Upped test to 100% and catching up on changelog
This commit is contained in:
parent
21a12ee3f6
commit
2996576556
17
CHANGELOG.md
17
CHANGELOG.md
|
@ -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)
|
||||
|
||||
|
|
|
@ -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/'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user