mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-05-25 04:33:44 +00:00
Clean up imports, codestyle
This commit is contained in:
parent
db11b8c866
commit
2b7308e8ea
6 changed files with 7 additions and 8 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import re
|
import re
|
||||||
from django.utils.datastructures import SortedDict
|
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
@ -16,6 +15,7 @@ from django.conf import settings
|
||||||
from django.template.loader import render_to_string
|
from django.template.loader import render_to_string
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
|
from django.utils.datastructures import SortedDict
|
||||||
|
|
||||||
from .utils import import_by_path
|
from .utils import import_by_path
|
||||||
from .settings import EMBED_VIDEO_BACKENDS, EMBED_VIDEO_TIMEOUT
|
from .settings import EMBED_VIDEO_BACKENDS, EMBED_VIDEO_TIMEOUT
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
from django.template import Library, Node, TemplateSyntaxError, Variable
|
|
||||||
from django.utils.safestring import mark_safe
|
|
||||||
from django.utils.encoding import smart_str
|
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
import requests
|
import requests
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
from django.template import Library, Node, TemplateSyntaxError, Variable
|
||||||
|
from django.utils.safestring import mark_safe
|
||||||
|
from django.utils.encoding import smart_str
|
||||||
|
|
||||||
from ..backends import detect_backend, VideoBackend, \
|
from ..backends import detect_backend, VideoBackend, \
|
||||||
VideoDoesntExistException, UnknownBackendException
|
VideoDoesntExistException, UnknownBackendException
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from django.forms import TextInput
|
|
||||||
|
|
||||||
from embed_video.admin import AdminVideoWidget, AdminVideoMixin
|
from embed_video.admin import AdminVideoWidget, AdminVideoMixin
|
||||||
from embed_video.backends import VimeoBackend
|
from embed_video.backends import VimeoBackend
|
||||||
from embed_video.fields import EmbedVideoField, EmbedVideoFormField
|
from embed_video.fields import EmbedVideoField, EmbedVideoFormField
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ from mock import patch
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from django.forms import ValidationError
|
from django.forms import ValidationError
|
||||||
|
|
||||||
from ..fields import EmbedVideoField, EmbedVideoFormField
|
from ..fields import EmbedVideoField, EmbedVideoFormField
|
||||||
from ..backends import UnknownBackendException, UnknownIdException
|
from ..backends import UnknownBackendException, UnknownIdException
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from django.test.client import RequestFactory
|
|
||||||
from mock import Mock, patch
|
from mock import Mock, patch
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
@ -15,6 +14,7 @@ from django.http import HttpRequest
|
||||||
from django.template.base import Template
|
from django.template.base import Template
|
||||||
from django.template.context import RequestContext
|
from django.template.context import RequestContext
|
||||||
from django.test.utils import override_settings
|
from django.test.utils import override_settings
|
||||||
|
from django.test.client import RequestFactory
|
||||||
from testfixtures import LogCapture
|
from testfixtures import LogCapture
|
||||||
|
|
||||||
from embed_video.templatetags.embed_video_tags import VideoNode
|
from embed_video.templatetags.embed_video_tags import VideoNode
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import sys
|
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue