Added beginning support for py.test

This commit is contained in:
Daniel Roy Greenfeld 2016-02-24 12:22:22 -08:00
parent d614351d12
commit 05abf3582c
6 changed files with 25 additions and 2 deletions

View File

@ -2,10 +2,14 @@
All enhancements and patches to cookiecutter-django will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [2016-02-24]
### Added
- Beginning support for `py.test` (@pydanny)
## [2016-02-18]
### Changed
- The status of the registration (open or closed) is now read from the project environment instead of hardcoded in the common settings file. (@Eraldo)
- Renamed the adapter.py file to adapters.py to match the django naming convention. (@Eraldo)
- Renamed the adapter.py file to adapters.py to match the django naming convention. (@Eraldo)

View File

@ -21,7 +21,7 @@ Features
---------
* For Django 1.9
* Renders Django projects with 100% test coverage
* Renders Django projects with 100% starting test coverage
* Twitter Bootstrap_ v4.0.0 - alpha_
* End-to-end via Hitch_
* AngularJS_
@ -34,6 +34,9 @@ Features
* Media storage using Amazon S3
* Docker support using docker-compose_ for development and production
* Procfile_ for deploying to Heroku
* Works with Python 2.7.x or 3.5.x!
* Run tests with unittest or py.test!
Optional Integrations
---------------------

View File

@ -36,6 +36,13 @@ To run the tests, check your test coverage, and generate an HTML coverage report
$ coverage html
$ open htmlcov/index.html
Running tests with py.test
~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
$ py.test
Live reloading and Sass CSS compilation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -0,0 +1,2 @@
[pytest]
DJANGO_SETTINGS_MODULE=config.settings.local

View File

@ -13,3 +13,7 @@ django-debug-toolbar==1.4
# improved REPL
ipdb==0.8.1
# pytest!
pytest-django==2.9.1
pytest-sugar=0.5.1

View File

@ -12,3 +12,6 @@ django_coverage_plugin==1.2.2
flake8==2.5.2
django-test-plus==1.0.11
factory_boy==2.6.0
# pytest!
pytest-django==2.9.1