Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test:
- pytables >=3.0.0
- sqlalchemy >=0.8.0
- bcolz
- mock
- pymongo >=2.8,<3 # [not (py35 or win)]
- dask
- paramiko # [not win]
Expand Down
1 change: 1 addition & 0 deletions etc/requirements_ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Jinja2==2.8
jmespath==0.9.0
locket==0.2.0
MarkupSafe==0.23
mock==2.0.0
msgpack-python==0.4.8
multipledispatch==0.4.9
networkx==1.11
Expand Down
5 changes: 4 additions & 1 deletion odo/backends/tests/test_url.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import print_function

import pytest
from mock import patch, Mock

from functools import partial
import codecs
Expand Down Expand Up @@ -64,8 +65,10 @@ def test_sample_different_encoding():


@pytest.mark.xfail(raises=HTTPError)
def test_failed_url():
@patch('odo.backends.url.urlopen')
def test_failed_url(m):
failed_url = "http://foo.com/myfile.csv"
m.side_effect = HTTPError(failed_url, 404, 'Not found', None, None)
with tmpfile('.csv') as fn:
odo(failed_url, fn)

Expand Down