Adam Tauber
ec2516b93d
Merge pull request #233 from dalf/master
...
[fix] kickass engine
10 years ago
dalf
9db0bbc304
[fix] kickass engine : change the hostname to kickass.to (since kickass.so doesn't respond).
...
Close #197 perhaps not in clean way. Explanation :
In fact 301 responses are followed, except the hook is called for each HTTP response,
the first time for the HTTP 301 response then for HTTP 200 response.
Since the kickass engine excepts a real result, the engine crashes, AND the requests lib stops here.
Add a simple test at the beginning of the result function allows pass the first response and handle correctly the second response (the real one)
May be a proper way is to add this test in search.py ?
Code inside requests :
53d02381e2/requests/sessions.py (L579)
and line 591
10 years ago
Adam Tauber
f6db77d81e
Merge pull request #210 from Cqoicebordel/unit-tests
...
unit tests
10 years ago
Cqoicebordel
f96154b7c4
Google's unit test
10 years ago
Cqoicebordel
f703a77fc9
Photon's unit test
...
As in Flickr, a continue is not detected by coverage as covered but it is.
10 years ago
Cqoicebordel
8c2a5f0492
DDG Definitions' unit tests
10 years ago
Cqoicebordel
0a537d3b89
Yacy's unit test
10 years ago
Thomas Pointhuber
832ea60e3d
[fix] pep8, tests
10 years ago
Thomas Pointhuber
dd4686a388
[enh] add blekko_images engine
10 years ago
Thomas Pointhuber
04f7118d0a
[enh] add gigablast engine
10 years ago
Cqoicebordel
fb04f76698
Faroo's unit test
10 years ago
Cqoicebordel
d0a1df881a
Openstreetmap's unit test
10 years ago
Cqoicebordel
f1c10f4fe4
Startpage's unit test
10 years ago
Cqoicebordel
3a4d6045c1
Subtitleseeker's unit test
10 years ago
Cqoicebordel
9f13af8d3c
Yahoo's unit test
10 years ago
Cqoicebordel
ff2ad57a87
Yahoo News' unit test
10 years ago
Cqoicebordel
d6e511fc2f
Twitter's unit test
...
There is a commented line of a test that I didn't succed to make it work. It's an issue of unicode, utf-8, ascii, latin1... I think I tried everything, but if you have an idea... I'm still a newbie in python...
10 years ago
Cqoicebordel
a96208be96
Mediawiki's unit test
10 years ago
Adam Tauber
268e0516ee
[fix] piratebay url change in tests
10 years ago
Cqoicebordel
1ea5bc63a5
Currency converter's unit test + DDG correction
...
Does anyone know how to trigger the except in the currency converter while still being matched by the regex ?
10 years ago
Cqoicebordel
efe6dead55
Duckduckgo unit test
10 years ago
Adam Tauber
7f865356f9
Merge branch 'unit-tests' of https://github.com/Cqoicebordel/searx into Cqoicebordel-unit-tests
...
Conflicts:
searx/tests/test_engines.py
10 years ago
Cqoicebordel
5a16077455
PirateBay unit test + reactivation in Settings
10 years ago
Cqoicebordel
c6535dd65e
Flickr Noapi unit test
10 years ago
Thomas Pointhuber
a605d0ae69
[enh] add test for 1x.com
10 years ago
Cqoicebordel
8cf2ee5721
500px unit test
10 years ago
Cqoicebordel
04fa31b7f4
Vimeo's unit test
10 years ago
Cqoicebordel
d20ddf9da1
Stackoverflow's unit test
10 years ago
Cqoicebordel
787fee6a09
Soundcloud's unit test
10 years ago
Cqoicebordel
b7dc1fb9d5
Google news' unit test
10 years ago
Cqoicebordel
d5b8005ee1
Google images' unit test
10 years ago
Cqoicebordel
8ea749d6ec
Kickass' unit test
10 years ago
Cqoicebordel
a3d444ab85
BTDigg's unit test
10 years ago
Cqoicebordel
efde2c21c8
Bing news' unit test
...
I have no idea why coverage tell 97% and 2 misses in branches. If anyone has an idea...
10 years ago
Cqoicebordel
dad0434f34
Bing images' unit test
10 years ago
Cqoicebordel
d495704551
Deviant Art's unit test
10 years ago
Cqoicebordel
1d255061c7
Digg's unit test
10 years ago
Cqoicebordel
92368a4107
Dailymotion's unit test
10 years ago
Cqoicebordel
0f81aa8410
Searchcode doc's test unit
10 years ago
Cqoicebordel
eca5de73a7
Searchcode code's test unit
10 years ago
Cqoicebordel
4dba3739fb
Youtube's unit test
10 years ago
Cqoicebordel
8f040e30ad
Flickr's test unit
10 years ago
Cqoicebordel
192f255e13
Mixcloud's unit test
10 years ago
Cqoicebordel
0f52cc7542
Deezer's unit test
10 years ago
Cqoicebordel
525af2a031
Add bing in the test units
10 years ago
Gabor Nagy
f705800612
Add tests for searx.engines.(dummy|github)
10 years ago