mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Fixed failing oembed tests
This commit is contained in:
parent
50663e47db
commit
ab7f3da7af
@ -214,7 +214,7 @@ class TestOembed(TestCase):
|
||||
def setUp(self):
|
||||
class DummyResponse(object):
|
||||
def read(self):
|
||||
return "foo"
|
||||
return b"foo"
|
||||
self.dummy_response = DummyResponse()
|
||||
|
||||
def test_oembed_invalid_provider(self):
|
||||
@ -269,7 +269,7 @@ class TestEmbedFilter(TestCase):
|
||||
def setUp(self):
|
||||
class DummyResponse(object):
|
||||
def read(self):
|
||||
return "foo"
|
||||
return b"foo"
|
||||
self.dummy_response = DummyResponse()
|
||||
|
||||
@patch('six.moves.urllib.request.urlopen')
|
||||
|
Loading…
Reference in New Issue
Block a user