mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-06-05 22:23:17 +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.
|
All enhancements and patches to cookiecutter-django will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
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]
|
## [2015-08-05]
|
||||||
### Added
|
### Added
|
||||||
- Sentry support (@burhan)
|
- Sentry support (@burhan)
|
||||||
|
|
||||||
### Changed
|
### 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)
|
- When using maildump, pin gevent. (@audreyr)
|
||||||
- Updated coverage version. (@audreyr)
|
- Updated coverage version. (@audreyr)
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,17 @@ from test_plus.test import TestCase
|
||||||
|
|
||||||
class TestUser(TestCase):
|
class TestUser(TestCase):
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
self.user = self.make_user()
|
||||||
|
|
||||||
def test__str__(self):
|
def test__str__(self):
|
||||||
user = self.make_user()
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
user.username,
|
self.user.__str__(),
|
||||||
"testuser" # This is the default username for self.make_user()
|
"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