diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2019-01-05 18:08:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-05 18:08:05 +0100 |
| commit | abcbcec0b5ab9a3108ccc972876fdb60c7911e7a (patch) | |
| tree | 65997b07ea9b2292662f9d5453c6fd388d10845a /tests/unit | |
| parent | 899ba5d6dee82faacb572b4d9bc4c58570628531 (diff) | |
| parent | 2456b8f57199b0479b063fa3dfb16a585c6a40ed (diff) | |
Merge pull request #1444 from Venca24/devel_google_videos
[fix] google videos engine
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/engines/test_google_videos.py | 27 |
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) |