mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-19 06:40:22 +00:00
39 lines
531 B
ReStructuredText
39 lines
531 B
ReStructuredText
Testing
|
|
=======
|
|
|
|
Requirements
|
|
------------
|
|
|
|
The library needs ``Django`` and ``requests`` and ``nose``, ``mock``,
|
|
``south`` and ``textfixtures`` libraries to run tests.
|
|
|
|
::
|
|
|
|
pip install Django
|
|
pip install requests
|
|
pip install nose
|
|
pip install mock
|
|
pip install south
|
|
pip install textfixtures
|
|
|
|
|
|
Running tests
|
|
-------------
|
|
|
|
Run tests with this command:
|
|
|
|
::
|
|
|
|
nosetests
|
|
|
|
|
|
Be sure to run it before each commit and fix broken tests.
|
|
|
|
|
|
Run tests with coverage:
|
|
|
|
::
|
|
|
|
nosetests --with-coverage --cover-package=embed_video
|
|
|
|
|