Skip to content

Commit 55a81c4

Browse files
committed
Update black and isort for embed_video
Also includes necessary changes to get to pass.
1 parent 847d077 commit 55a81c4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

embed_video/tests/backends/tests_soundcloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ def get_info(self):
111111
"width": 123,
112112
"height": 321,
113113
"thumbnail_url": "xyz",
114-
"html": '\u003Ciframe width="100%" height="400" '
114+
"html": '\u003ciframe width="100%" height="400" '
115115
'scrolling="no" frameborder="no" '
116-
'src="{0}"\u003E\u003C/iframe\u003E'.format(self.url),
116+
'src="{0}"\u003e\u003c/iframe\u003e'.format(self.url),
117117
}
118118

119119
self.foo = FooBackend("abcd")

embed_video/tests/templatetags/tests_embed_video_tags.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,10 @@ def test_user_size(self):
134134
)
135135

136136
def test_wrong_size(self):
137-
template = Template(
138-
"""
137+
template = Template("""
139138
{% load embed_video_tags %}
140139
{% video 'http://www.youtube.com/watch?v=jsrRJyHBvzw' 'so x huge' %}
141-
"""
142-
)
140+
""")
143141
request = RequestContext(HttpRequest())
144142
self.assertRaises(TemplateSyntaxError, template.render, request)
145143

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ ignore_errors =
5353
ignore_errors = true
5454
basepython = 3.11
5555
deps =
56-
black==22.6.0
57-
isort==5.6.4
56+
black~=26.1
57+
isort~=7.0
5858
skip_install = true
5959
commands =
6060
isort --profile black --check-only --diff embed_video setup.py
61-
black -t py38 --check --diff embed_video
61+
black --check --diff embed_video

0 commit comments

Comments
 (0)