Test case for #17.

This commit is contained in:
Juda Kaleta 2014-02-21 20:54:54 +01:00
parent d4c222e606
commit 078e5662a7
2 changed files with 10 additions and 6 deletions

View file

@ -1,20 +1,23 @@
Testing
==============================================
=======
Requirements
-------------
------------
You need ``nose``, ``mock`` and ``south`` libraries to run tests.
The library needs ``Django`` and ``requests`` and ``nose``, ``mock`` and
``south`` libraries to run tests.
::
::
pip install Django
pip install requests
pip install nose
pip install mock
pip install south
Running tests
------------------
-------------
Run tests with this command:
@ -29,7 +32,7 @@ Be sure to run it before each commit and fix broken tests.
Run tests with coverage:
::
nosetests --with-coverage --cover-package=embed_video

View file

@ -49,6 +49,7 @@ class YoutubeBackendTestCase(BackendTestMixin, TestCase):
('http://www.youtube.com/watch?feature=player_embedded&v=2NpZbaAIXag', '2NpZbaAIXag'),
('https://www.youtube.com/watch?feature=player_embedded&v=2NpZbaAIXag', '2NpZbaAIXag'),
('https://www.youtube.com/watch?v=XPk521voaOE&feature=youtube_gdata_player', 'XPk521voaOE'),
('http://www.youtube.com/watch?v=6xu00J3-g2s&list=PLb5n6wzDlPakFKvJ69rJ9AJW24Aaaki2z', '6xu00J3-g2s'),
)
instance = YoutubeBackend