mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
Fix tests.
This commit is contained in:
parent
e89a82dac1
commit
fad3236a4b
3 changed files with 6 additions and 9 deletions
|
|
@ -2,6 +2,7 @@ Release 1.0.0 (dev)
|
|||
-------------------
|
||||
|
||||
**Backward incompatible changes:**
|
||||
|
||||
- filter `embed_video_tags.embed` has been removed
|
||||
|
||||
Backward compatible changes:
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
import re
|
||||
import sys
|
||||
import json
|
||||
import requests
|
||||
|
||||
try:
|
||||
# Python <= 2.7
|
||||
import urlparse
|
||||
from urllib import urlencode
|
||||
except ImportError:
|
||||
# support for py3
|
||||
if sys.version_info.major == 3:
|
||||
import urllib.parse as urlparse
|
||||
from urllib.parse import urlencode
|
||||
else:
|
||||
import urlparse
|
||||
|
||||
from django.http import QueryDict
|
||||
from django.template.loader import render_to_string
|
||||
|
|
@ -200,7 +197,6 @@ class VideoBackend(object):
|
|||
raise NotImplementedError
|
||||
|
||||
def set_options(self, options):
|
||||
print options
|
||||
for key in options:
|
||||
setattr(self, key, options[key])
|
||||
|
||||
|
|
|
|||
|
|
@ -206,6 +206,7 @@ class EmbedTestCase(TestCase):
|
|||
{% load embed_video_tags %}
|
||||
{% video 'http://www.youtube.com/watch?v=jsrRJyHBvzw' query="rel=1&wmode=transparent" %}
|
||||
"""
|
||||
|
||||
self.assertRenderedTemplate(
|
||||
template,
|
||||
'<iframe width="480" height="360" '
|
||||
|
|
@ -240,7 +241,6 @@ class EmbedTestCase(TestCase):
|
|||
)
|
||||
|
||||
|
||||
|
||||
class EmbedVideoNodeTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.parser = Mock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue