mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-05-22 03:11:52 +00:00
Test case for #17.
This commit is contained in:
parent
d4c222e606
commit
078e5662a7
2 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue