-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.environ['HOWDOI_SEARCH_ENGINE'] FIX #402
Conversation
was not respecting the env variable for the search engine, fixed now
There is some issue with duckduckgo, it is blocking the search due to which nose test is failing, so the checks are not passing
|
Addresses #377 |
I'm seeing the same issue with duckduckgo returning a 403. It happens on this line: https://github.com/gleitz/howdoi/blob/master/howdoi/howdoi.py#L276. Would you please add a log message to this PR so that we get better logging output when using
I believe the issue here is that you fixed respecting When you run the tests, the HTML of the search engine page is downloaded here https://github.com/gleitz/howdoi/blob/master/test_howdoi.py#L28-L32 So as long as we can get the tests to run once, the resulting HTML will be save and If that doesn't work, we may need to disable the DDG test case for now. |
You'll know the block has been lifted if you can successfully run
|
Hmm, it could be that DDG is just broken. I tried this on a remote machine I hadn't used howdoi on for a while and got this reponse:
|
So, let's just comment out the DDG test for now and we can fix that issue separately. |
Add logging when there is a block error Add red formatting to error messages
Comment out DDG test for nose test for PR to pass. Enable this when issue gleitz#404 is resolved
Very nice! |
Fixes the problem of not respecting HOWDOI_SEARCH_ENGINE environment variable, issue #377
--engine
will be preferred over the env variable--engine
Kindly review and let me know if any changes are needed.