diff options
author | Venca24 <Vaclav.Zouzalik@seznam.cz> | 2019-01-04 16:04:05 +0100 |
---|---|---|
committer | Venca24 <Vaclav.Zouzalik@seznam.cz> | 2019-01-04 16:04:05 +0100 |
commit | 0e493db2fb06fd78ac05f82abd8b1cc86089684f (patch) | |
tree | 6f1df43963c5625904bd60905886e302c3aa1c39 | |
parent | cf26aba93b96bb1171feb60fefb232a9113b85b0 (diff) | |
download | searxng-0e493db2fb06fd78ac05f82abd8b1cc86089684f.tar.gz searxng-0e493db2fb06fd78ac05f82abd8b1cc86089684f.zip |
[fix] google videos test
-rw-r--r-- | tests/unit/engines/test_google_videos.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/unit/engines/test_google_videos.py b/tests/unit/engines/test_google_videos.py index dde4e21b0..3b7edf373 100644 --- a/tests/unit/engines/test_google_videos.py +++ b/tests/unit/engines/test_google_videos.py @@ -33,6 +33,15 @@ class TestGoogleVideosEngine(SearxTestCase): <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> @@ -41,12 +50,22 @@ class TestGoogleVideosEngine(SearxTestCase): <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> </div> </div> </div> </div> + <script>function _setImagesSrc(c,d,e){}</script> """ response = mock.Mock(text=html) results = google_videos.response(response) |