diff --git a/docs/development/testing.rst b/docs/development/testing.rst index d4605c1..9b52251 100644 --- a/docs/development/testing.rst +++ b/docs/development/testing.rst @@ -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 diff --git a/embed_video/tests/tests_backend.py b/embed_video/tests/tests_backend.py index 62c8833..5056ea1 100644 --- a/embed_video/tests/tests_backend.py +++ b/embed_video/tests/tests_backend.py @@ -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