Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
infra
spot
Commits
0e493db2
Commit
0e493db2
authored
Jan 04, 2019
by
Venca24
Browse files
[fix] google videos test
parent
cf26aba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/engines/test_google_videos.py
View file @
0e493db2
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment