summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-12-11 10:40:07 +0100
committergebele <gebele@in-silico.ch>2013-12-11 10:40:07 +0100
commit346562cc5d6c651ad8a934e5d7bbddd8cc2cc6c2 (patch)
tree8c327998b03617c2714132d5995062a5eac75f55
parenta9843c697f9be57723faff769deafe616d16ebce (diff)
init tests for qvalue, pvalue, foldchange
-rw-r--r--test/toxbank-investigation-sparql.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index ba390a7..ecef740 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -150,6 +150,36 @@ class TBSPARQLTest < MiniTest::Test
assert inv_char.include?("#{@@uri}:::organism:::Saccharomyces cerevisiae (Baker's yeast)")
assert_equal 200, response.code
end
+
+ #TODO assertions
+ def test_16_investigation_by_pvalue
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/investigation_by_pvalue", {:value => "0.05"}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ result = JSON.parse(response)
+ #puts result
+ #inv_pvalue = result["results"]["bindings"].map{|n| ""}
+ #assert inv_pvalue.include?("")
+ assert_equal 200, response.code
+ end
+
+ #TODO assertions
+ def test_17_investigation_by_qvalue
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/investigation_by_qvalue", {:value => "0.05"}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ result = JSON.parse(response)
+ #puts result
+ #inv_qvalue = result["results"]["bindings"].map{|n| ""}
+ #assert inv_qvalue.include?("")
+ assert_equal 200, response.code
+ end
+
+ #TODO assertions
+ def test_18_investigation_by_foldchange
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/investigation_by_foldchange", {:value => "1.5"}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ result = JSON.parse(response)
+ #puts result
+ #inv_foldchange = result["results"]["bindings"].map{|n| ""}
+ #assert inv_qvalue.include?("")
+ assert_equal 200, response.code
+ end
def test_30_empty_factorValues_search
assert_raises OpenTox::BadRequestError do