Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
searx-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
searx-engine
Commits
7fd7bd75
Commit
7fd7bd75
authored
May 21, 2018
by
Noémi Ványi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow up tests
parent
16915116
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_piratebay.py
tests/unit/engines/test_piratebay.py
+3
-3
No files found.
tests/unit/engines/test_piratebay.py
View file @
7fd7bd75
...
...
@@ -15,7 +15,7 @@ class TestPiratebayEngine(SearxTestCase):
params
=
piratebay
.
request
(
query
,
dicto
)
self
.
assertIn
(
'url'
,
params
)
self
.
assertIn
(
query
,
params
[
'url'
])
self
.
assertIn
(
'piratebay.
se
'
,
params
[
'url'
])
self
.
assertIn
(
'piratebay.
org
'
,
params
[
'url'
])
self
.
assertIn
(
'0'
,
params
[
'url'
])
dicto
[
'category'
]
=
'music'
...
...
@@ -99,7 +99,7 @@ class TestPiratebayEngine(SearxTestCase):
self
.
assertEqual
(
type
(
results
),
list
)
self
.
assertEqual
(
len
(
results
),
2
)
self
.
assertEqual
(
results
[
0
][
'title'
],
'This is the title'
)
self
.
assertEqual
(
results
[
0
][
'url'
],
'https://thepiratebay.
se
/this.is.the.link'
)
self
.
assertEqual
(
results
[
0
][
'url'
],
'https://thepiratebay.
org
/this.is.the.link'
)
self
.
assertEqual
(
results
[
0
][
'content'
],
'This is the content and should be OK'
)
self
.
assertEqual
(
results
[
0
][
'seed'
],
13
)
self
.
assertEqual
(
results
[
0
][
'leech'
],
334
)
...
...
@@ -149,7 +149,7 @@ class TestPiratebayEngine(SearxTestCase):
self
.
assertEqual
(
type
(
results
),
list
)
self
.
assertEqual
(
len
(
results
),
1
)
self
.
assertEqual
(
results
[
0
][
'title'
],
'This is the title'
)
self
.
assertEqual
(
results
[
0
][
'url'
],
'https://thepiratebay.
se
/this.is.the.link'
)
self
.
assertEqual
(
results
[
0
][
'url'
],
'https://thepiratebay.
org
/this.is.the.link'
)
self
.
assertEqual
(
results
[
0
][
'content'
],
'This is the content and should be OK'
)
self
.
assertEqual
(
results
[
0
][
'seed'
],
0
)
self
.
assertEqual
(
results
[
0
][
'leech'
],
0
)
...
...
Write
Preview
Markdown
is supported
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