Skip to content

Commit

Permalink
correct import path
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Dec 6, 2017
1 parent e33169d commit c895ab4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uw_iasystem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __get_resource(dao, url):
message = response.data

if status == 404:
# the URL is not found in Iasystem
# the URL not exists on the specific domain
return None

if status == 400:
Expand Down
1 change: 1 addition & 0 deletions uw_iasystem/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from uw_iasystem.util import fdao_ias_override
2 changes: 1 addition & 1 deletion uw_iasystem/tests/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from uw_iasystem.exceptions import TermEvalNotCreated
from uw_iasystem.evaluation import search_evaluations,\
get_evaluation_by_id, get_domain
from uw_iasystem.util import fdao_ias_override
from uw_iasystem.tests import fdao_ias_override
from uw_pws.util import fdao_pws_override


Expand Down
7 changes: 5 additions & 2 deletions uw_iasystem/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from restclients_core.util.decorators import use_mock
from dao import IASystem_UW_DAO, IASystem_UWB_DAO, IASystem_UWT_DAO
from uw_iasystem.dao import IASystem_UW_DAO, IASystem_UWB_DAO,\
IASystem_UWT_DAO, IASystem_UWEO_AP_DAO, IASystem_UWEO_IELP_DAO


fdao_ias_override = use_mock(IASystem_UW_DAO(), IASystem_UWB_DAO(),
IASystem_UWT_DAO())
IASystem_UWT_DAO(), IASystem_UWEO_AP_DAO(),
IASystem_UWEO_IELP_DAO())

0 comments on commit c895ab4

Please sign in to comment.