Skip to content

Commit 35927ef

Browse files
committed
Remove COHD-COVID TRAPI query test temporarily
1 parent 83d075e commit 35927ef

1 file changed

Lines changed: 23 additions & 21 deletions

File tree

test_cohd_covid_io.py

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -929,24 +929,26 @@ def test_relativeFrequency():
929929
print('...passed')
930930

931931

932-
def test_translator_query():
933-
""" Check the /translator/query endpoint. Primarily checks that the major objects adhere to the schema
934-
"""
935-
print(f'test_cohd_covid_io: testing /translator/query on {cr.server}..... ')
936-
resp, query = translator_query(node_1_curies=['MONDO:0021113'], node_2_categories=['biolink:Disease'],
937-
method='obsExpRatio', dataset_id=4, confidence_interval=0.99,
938-
min_cooccurrence=50, threshold=0.5, max_results=10, local_oxo=False,
939-
timeout=300)
940-
941-
# Expect HTTP 200 status response
942-
assert resp.status_code == 200, 'Expected an HTTP 200 status response code' \
943-
f'Received {resp.status_code}: {resp.text}'
944-
945-
# Use the Reasoner Validator Python package to validate against Reasoner Standard API
946-
json = resp.json()
947-
validate_trapi(json, "Response")
948-
949-
# There should be at least 1 result
950-
assert len(json['message']['results']) > 0
951-
952-
print('...passed')
932+
# Temporarily remove TRAPI query test until COHD-COVID database updated for pre-compute refactor
933+
934+
# def test_translator_query():
935+
# """ Check the /translator/query endpoint. Primarily checks that the major objects adhere to the schema
936+
# """
937+
# print(f'test_cohd_covid_io: testing /translator/query on {cr.server}..... ')
938+
# resp, query = translator_query(node_1_curies=['MONDO:0021113'], node_2_categories=['biolink:Disease'],
939+
# method='obsExpRatio', dataset_id=4, confidence_interval=0.99,
940+
# min_cooccurrence=50, threshold=0.5, max_results=10, local_oxo=False,
941+
# timeout=300)
942+
#
943+
# # Expect HTTP 200 status response
944+
# assert resp.status_code == 200, 'Expected an HTTP 200 status response code' \
945+
# f'Received {resp.status_code}: {resp.text}'
946+
#
947+
# # Use the Reasoner Validator Python package to validate against Reasoner Standard API
948+
# json = resp.json()
949+
# validate_trapi(json, "Response")
950+
#
951+
# # There should be at least 1 result
952+
# assert len(json['message']['results']) > 0
953+
#
954+
# print('...passed')

0 commit comments

Comments
 (0)