Skip to content

Commit

Permalink
Fix mock object in tests to run with latest libhxl.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmegginson committed Aug 30, 2016
1 parent f68e586 commit 37cc2f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# Mock URL access for local testing
#

def mock_open_url(url, allow_local=False):
def mock_open_url(url, allow_local=False, timeout=None):
"""
Open local files instead of URLs.
If it's a local file path, leave it alone; otherwise,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_empty_url(self):

def test_local_file(self):
"""Make sure we're not leaking local data."""
response = self.get('/data?url=/etc/passwd', status=500)
response = self.get('/data?url=/etc/passwd', status=403)

@patch(URL_MOCK_TARGET, new=URL_MOCK_OBJECT)
def test_url(self):
Expand Down

0 comments on commit 37cc2f3

Please sign in to comment.