diff options
author | CoreOS Admin <info@in-silico.ch> | 2019-09-09 10:06:04 +0000 |
---|---|---|
committer | CoreOS Admin <info@in-silico.ch> | 2019-09-09 10:06:04 +0000 |
commit | f1dedd7486861a9926b76b9ccaeeb76465888218 (patch) | |
tree | 4cc83cffb1d243f801479320ad94189d6e8a2889 | |
parent | 54902a0b5e04723058636226c3b0ae9f1b78fc39 (diff) |
-rw-r--r-- | service-tests/service-tests.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/service-tests/service-tests.rb b/service-tests/service-tests.rb index 33791b9..1c69e75 100644 --- a/service-tests/service-tests.rb +++ b/service-tests/service-tests.rb @@ -15,13 +15,6 @@ class WebServiceTests < Minitest::Test $c_model = $models.select{|m| m if m.model.name == "Mutagenicity (kazius)"}[0].id.to_s end - def test_virtuoso - puts "\nhttps://virtuoso.in-silico.ch" - assert_raises RestClient::NotFound do - response = RestClient.get "https://virtuoso.in-silico.ch" - end - end - def test_insilico_website puts "\nhttps://in-silico.ch" response = RestClient.get "https://in-silico.ch" @@ -193,6 +186,7 @@ class WebServiceTests < Minitest::Test xml = Nokogiri::HTML.parse(response.body) batch_file_id = xml.search("label")[4].attributes["for"].value.gsub(/existing|\[|\]/,"") batch_file_name = xml.search("label")[4].text.strip + puts batch_file_name assert_match xml.at('h1').text.gsub(/\n/,"").strip, "lazar toxicity predictions" puts "\nsingle prediction Mazzatorta: https://dg2.in-silico.ch/predict" response = RestClient.post "https://dg2.in-silico.ch/predict", {identifier: "O=[N+]([O-])c1ccccc1", selection: {"Mazzatorta"=>""}} @@ -210,8 +204,9 @@ class WebServiceTests < Minitest::Test assert_equal response.code, 200 xml = Nokogiri::HTML.parse(response.body) title = xml.search("h3").text - assert_equal title, "Batch Prediction Results:RHC_input" - sleep 3 + puts title + #assert_equal title, "Batch Prediction Results:RHC_input" + sleep 60 href = xml.search("a#downbutton_0")[0]["href"] puts "\ndownload csv batch results\n" response = RestClient.get href |