urllib3 1.20 bundled with requests 2.13.0 uses loglevel DEBUG instead of INFO for timeout, update expected test output

This commit is contained in:
Hopiu 2017-03-20 23:24:02 +01:00
parent 961363bf24
commit 15468ed3d6

View file

@ -160,7 +160,7 @@ class EmbedTestCase(TestCase):
self.assertRenderedTemplate(template, '')
logs.check(
('requests.packages.urllib3.connectionpool', 'INFO', 'Starting new HTTP connection (1): vimeo.com'),
('requests.packages.urllib3.connectionpool', 'DEBUG', 'Starting new HTTP connection (1): vimeo.com'),
('embed_video.templatetags.embed_video_tags', 'ERROR', 'Timeout reached during rendering embed video (`http://vimeo.com/72304002`)')
)
@ -281,4 +281,3 @@ class EmbedVideoNodeTestCase(TestCase):
context = {'request': InsecureRequest()}
backend = VideoNode.get_backend('http://www.youtube.com/watch?v=jsrRJyHBvzw', context)
self.assertFalse(backend.is_secure)