mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-13 17:42:26 +03:00
Added beginning support for py.test
This commit is contained in:
parent
d614351d12
commit
05abf3582c
|
@ -2,6 +2,10 @@
|
||||||
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/).
|
||||||
|
|
||||||
|
## [2016-02-24]
|
||||||
|
### Added
|
||||||
|
- Beginning support for `py.test` (@pydanny)
|
||||||
|
|
||||||
## [2016-02-18]
|
## [2016-02-18]
|
||||||
### Changed
|
### 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)
|
- The status of the registration (open or closed) is now read from the project environment instead of hardcoded in the common settings file. (@Eraldo)
|
||||||
|
|
|
@ -21,7 +21,7 @@ Features
|
||||||
---------
|
---------
|
||||||
|
|
||||||
* For Django 1.9
|
* 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_
|
* Twitter Bootstrap_ v4.0.0 - alpha_
|
||||||
* End-to-end via Hitch_
|
* End-to-end via Hitch_
|
||||||
* AngularJS_
|
* AngularJS_
|
||||||
|
@ -34,6 +34,9 @@ Features
|
||||||
* Media storage using Amazon S3
|
* Media storage using Amazon S3
|
||||||
* Docker support using docker-compose_ for development and production
|
* Docker support using docker-compose_ for development and production
|
||||||
* Procfile_ for deploying to Heroku
|
* Procfile_ for deploying to Heroku
|
||||||
|
* Works with Python 2.7.x or 3.5.x!
|
||||||
|
* Run tests with unittest or py.test!
|
||||||
|
|
||||||
|
|
||||||
Optional Integrations
|
Optional Integrations
|
||||||
---------------------
|
---------------------
|
||||||
|
|
|
@ -36,6 +36,13 @@ To run the tests, check your test coverage, and generate an HTML coverage report
|
||||||
$ coverage html
|
$ coverage html
|
||||||
$ open htmlcov/index.html
|
$ open htmlcov/index.html
|
||||||
|
|
||||||
|
Running tests with py.test
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ py.test
|
||||||
|
|
||||||
Live reloading and Sass CSS compilation
|
Live reloading and Sass CSS compilation
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
2
{{cookiecutter.repo_name}}/pytest.ini
Normal file
2
{{cookiecutter.repo_name}}/pytest.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[pytest]
|
||||||
|
DJANGO_SETTINGS_MODULE=config.settings.local
|
|
@ -13,3 +13,7 @@ django-debug-toolbar==1.4
|
||||||
|
|
||||||
# improved REPL
|
# improved REPL
|
||||||
ipdb==0.8.1
|
ipdb==0.8.1
|
||||||
|
|
||||||
|
# pytest!
|
||||||
|
pytest-django==2.9.1
|
||||||
|
pytest-sugar=0.5.1
|
||||||
|
|
|
@ -12,3 +12,6 @@ django_coverage_plugin==1.2.2
|
||||||
flake8==2.5.2
|
flake8==2.5.2
|
||||||
django-test-plus==1.0.11
|
django-test-plus==1.0.11
|
||||||
factory_boy==2.6.0
|
factory_boy==2.6.0
|
||||||
|
|
||||||
|
# pytest!
|
||||||
|
pytest-django==2.9.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user