mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-17 05:40:24 +00:00
Major changes: - filter ``embed`` is replaced by tag ``video``. - removed caching for whole backend, caching properties instead. - HTTP or HTTPS is set by context.is_secure() (just for ``video`` tag). - backends can be HTTP only (``allow_https = False``). Minor changes: - changed theme of docs to RTD theme. - help about testing HTTPS on development server. - added and modified tests
40 lines
613 B
ReStructuredText
40 lines
613 B
ReStructuredText
Testing
|
|
==============================================
|
|
|
|
Requirements
|
|
-------------
|
|
|
|
You need ``nose``, ``mock`` and ``south`` libraries to run tests.
|
|
|
|
::
|
|
|
|
pip install nose
|
|
pip install mock
|
|
pip install south
|
|
|
|
|
|
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
|
|
|
|
|
|
Testing HTTPS
|
|
-------------
|
|
|
|
To test HTTPS on development server, `follow this instructions
|
|
<http://www.ianlewis.org/en/testing-https-djangos-development-server>`_.
|