aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-08-11 11:01:05 +0300
committerFrederick Muriuki Muriithi2022-08-11 11:01:05 +0300
commit309785e95696567a35b42690b032808eaa59c86d (patch)
tree12da59edce0bd47133e5ee18f3b57c845530e7e0
parent8658545c99a576229f9263414f5557545500f4a1 (diff)
downloadgenenetwork2-309785e95696567a35b42690b032808eaa59c86d.tar.gz
Fix correlation tests: Fix the test message.
-rw-r--r--test/requests/correlation_tests.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/requests/correlation_tests.py b/test/requests/correlation_tests.py
index 070698fd..0b8ba8cd 100644
--- a/test/requests/correlation_tests.py
+++ b/test/requests/correlation_tests.py
@@ -32,25 +32,23 @@ def check_sample_correlations(baseurl):
assert (result.text.find(top_n_message) >= 0), result.text
def check_tissue_correlations(baseurl):
- print("\tChecking tissue correlations...", end="")
data = {
"corr_type": "tissue",
"corr_sample_method": "pearson",
"location_type": "gene",
}
- top_n_message = "The top 100 correlations ranked by the Genetic Correlation"
+ top_n_message = "The top 100 correlations ranked by the Tissue Correlation"
result = do_request(f"{baseurl}/corr_compute", data)
assert result.status_code == 200
assert (result.text.find("Values of record 1435464_at") >= 0), result.text
assert (result.text.find(top_n_message) >= 0), result.text
def check_lit_correlations(baseurl):
- print("\tChecking lit correlations...", end="")
data = {
"corr_type": "lit",
"corr_return_results": "200"
}
- top_n_message = "The top 500 correlations ranked by the Genetic Correlation"
+ top_n_message = "The top 200 correlations ranked by the Lit Correlation"
result = do_request(f"{baseurl}/corr_compute", data)
assert result.status_code == 200
assert (result.text.find("Values of record 1435464_at") >= 0), result.text