Skip to content

Commit

Permalink
Merge pull request #44 from IBM/dlangst
Browse files Browse the repository at this point in the history
Dlangst
  • Loading branch information
dlangst authored Nov 18, 2021
2 parents d14c825 + bb31f22 commit b679361
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

setup: deps dev_deps install_project

all: setup test-unit lint
all: upgrade_pip setup test-unit lint

deps:
ci: setup test-unit lint

upgrade_pip:
python -m pip install --upgrade pip

deps:
python -m pip install -r requirements.txt

dev_deps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
IAMURL = CONFIG.get('settings', 'iam_url')
VERSION = CONFIG.get('settings', 'version')
LEVEL = CONFIG.get('settings', 'logging_level')
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
FLOW = CONFIG.get('settings', 'flow')

ACD = wh.AnnotatorForClinicalDataV1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
IAMURL = CONFIG.get('settings', 'iam_url')
VERSION = CONFIG.get('settings', 'version')
LEVEL = CONFIG.get('settings', 'logging_level')
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)

ACD = wh.AnnotatorForClinicalDataV1(
authenticator=IAMAuthenticator(apikey=APIKEY, url=IAMURL, disable_ssl_verification=DISABLE_SSL),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
IAMURL = CONFIG.get('settings', 'iam_url')
VERSION = CONFIG.get('settings', 'version')
LEVEL = CONFIG.get('settings', 'logging_level')
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
FLOW = CONFIG.get('settings', 'flow')

ACD = wh.AnnotatorForClinicalDataV1(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
IAMURL = CONFIG.get('settings', 'iam_url')
VERSION = CONFIG.get('settings', 'version')
LEVEL = CONFIG.get('settings', 'logging_level')
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)

ACD = wh.AnnotatorForClinicalDataV1(
authenticator=IAMAuthenticator(apikey=APIKEY, url=IAMURL, disable_ssl_verification=DISABLE_SSL),
Expand All @@ -36,4 +36,4 @@

def test_get_health_check():
response = ACD.get_health_check_status()
assert response is not None
assert response is not None
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
IAMURL = CONFIG.get('settings', 'iam_url')
VERSION = CONFIG.get('settings', 'version')
LEVEL = CONFIG.get('settings', 'logging_level')
DISABLE_SSL = CONFIG.get('settings', 'disable_ssl')
DISABLE_SSL = (CONFIG.get('settings', 'disable_ssl')=='True)
PROFILE = CONFIG.get('settings', 'profile')

ACD = wh.AnnotatorForClinicalDataV1(
Expand Down
3 changes: 0 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ pytest>=6.2.1,<7.0.0
responses>=0.12.1,<1.0.0
pylint>=2.6.0,<3.0.0
tox>=3.2.0,<4.0.0

# code coverage
coverage>=4.5.4
codecov>=2.1.0,<3.0.0
pytest-cov>=2.2.1,<3.0.0
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ commands =
passenv = TOXENV CI TRAVIS*
commands =
py.test --cov=ibm_whcs_sdk {toxinidir}/ibm_whcs_sdk/annotator_for_clinical_data/tests/unit {toxinidir}/ibm_whcs_sdk/insights_for_medical_literature/tests/unit
codecov -e TOXENV

deps =
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit b679361

Please sign in to comment.