summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_google_videos.py
diff options
context:
space:
mode:
authord-tux <deniswernert@gmail.com>2019-01-08 09:24:45 +0100
committerGitHub <noreply@github.com>2019-01-08 09:24:45 +0100
commit329172f66e7ad066f7cdd24db5d414c816ad8a80 (patch)
tree426482bdcb8f5fd0b2f5e983ae4a0bbb17fc21d9 /tests/unit/engines/test_google_videos.py
parent4a127b19de860a1f1e75f597dc0d53bfdd06e52e (diff)
parent2438b3c77a3ad276aaeb15e5a54315d351a42273 (diff)
Merge branch 'master' into engines/unsplash
Diffstat (limited to 'tests/unit/engines/test_google_videos.py')
-rw-r--r--tests/unit/engines/test_google_videos.py27
1 files changed, 23 insertions, 4 deletions
diff --git a/tests/unit/engines/test_google_videos.py b/tests/unit/engines/test_google_videos.py
index a48e9a755..3b7edf373 100644
--- a/tests/unit/engines/test_google_videos.py
+++ b/tests/unit/engines/test_google_videos.py
@@ -30,16 +30,34 @@ class TestGoogleVideosEngine(SearxTestCase):
<div>
<div>
<div class="g">
- <div>
- <h3><a href="url_1">Title 1</h3>
+ <div class="r">
+ <a href="url_1"><h3>Title 1</h3></a>
+ </div>
+ <div class="s">
+ <div>
+ <a>
+ <g-img>
+ <img id="vidthumb1">
+ </g-img>
+ </a>
+ </div>
</div>
<div>
<span class="st">Content 1</span>
</div>
</div>
<div class="g">
- <div>
- <h3><a href="url_2">Title 2</h3>
+ <div class="r">
+ <a href="url_2"><h3>Title 2</h3></a>
+ </div>
+ <div class="s">
+ <div>
+ <a>
+ <g-img>
+ <img id="vidthumb2">
+ </g-img>
+ </a>
+ </div>
</div>
<div>
<span class="st">Content 2</span>
@@ -47,6 +65,7 @@ class TestGoogleVideosEngine(SearxTestCase):
</div>
</div>
</div>
+ <script>function _setImagesSrc(c,d,e){}</script>
"""
response = mock.Mock(text=html)
results = google_videos.response(response)