Fixed codestyle in test_ckanharvester.py
This commit is contained in:
parent
95e6e934ac
commit
dfc147e6d7
|
@ -4,7 +4,6 @@ from nose.tools import assert_equal, assert_raises, assert_in
|
|||
import json
|
||||
from mock import patch, MagicMock, Mock
|
||||
from requests.exceptions import HTTPError, RequestException
|
||||
import unittest
|
||||
|
||||
try:
|
||||
from ckan.tests.helpers import reset_db, call_action
|
||||
|
@ -341,7 +340,6 @@ class TestCkanHarvester(object):
|
|||
assert_in('default_extras must be a dictionary',
|
||||
str(harvest_context.exception))
|
||||
|
||||
|
||||
@patch('ckanext.harvest.harvesters.ckanharvester.pyopenssl.inject_into_urllib3')
|
||||
@patch('ckanext.harvest.harvesters.ckanharvester.CKANHarvester.config')
|
||||
@patch('ckanext.harvest.harvesters.ckanharvester.requests.get', side_effect=RequestException('Test exception'))
|
||||
|
|
Loading…
Reference in New Issue