kaxil commented on issue #5173: AIRFLOW-4295. Make comparison of `method` case 
insensitive in HttpHook
URL: https://github.com/apache/airflow/pull/5173#issuecomment-493773005
 
 
   @karan5291 I have to revert this commit from master as Travis failed with 
the following error:
   
   ```
   
======================================================================
   46) ERROR: test_hook_with_method_in_lowercase 
(tests.hooks.test_http_hook.TestHttpHook)
   
----------------------------------------------------------------------
      Traceback (most recent call last):
       
.tox/py35-backend_mysql-env_docker/lib/python3.5/site-packages/requests_mock/mocker.py
 line 230 in inner
         return func(*args, **kwargs)
       /usr/lib/python3.5/unittest/mock.py line 1157 
in patched
         return func(*args, **keywargs)
       tests/hooks/test_http_hook.py line 144 in 
test_hook_with_method_in_lowercase
         self.get_lowercase_hook.run('v1/test', data=data)
       airflow/hooks/http_hook.py line 129 in 
run
         prepped_request = session.prepare_request(req)
       
.tox/py35-backend_mysql-env_docker/lib/python3.5/site-packages/requests/sessions.py
 line 462 in prepare_request
         hooks=merge_hooks(request.hooks, self.hooks),
       
.tox/py35-backend_mysql-env_docker/lib/python3.5/site-packages/requests/models.py
 line 313 in prepare
         self.prepare_url(url, params)
       
.tox/py35-backend_mysql-env_docker/lib/python3.5/site-packages/requests/models.py
 line 381 in prepare_url
         raise InvalidURL(*e.args)
   ```
   
   Can you fix it and raise a new PR?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to