Skip to content

Commit

Permalink
Test case for #17.
Browse files Browse the repository at this point in the history
  • Loading branch information
yetty committed Feb 21, 2014
1 parent d4c222e commit 078e566
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/development/testing.rst
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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


1 change: 1 addition & 0 deletions embed_video/tests/tests_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 078e566

Please sign in to comment.