aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPjotr Prins2016-09-26 08:14:42 +0000
committerPjotr Prins2016-09-26 08:14:42 +0000
commitade0969bdc784d71d67d8422c6fd1238ed3ca391 (patch)
tree4304bda5a818805d19548ac242ef7c45919d41f3 /test
parent1ab5479fa48d645f5b2e3899f7d5e568e4c6fcdc (diff)
downloadgenenetwork2-ade0969bdc784d71d67d8422c6fd1238ed3ca391.tar.gz
Test: mechanical Rob executes scanone test
Diffstat (limited to 'test')
-rw-r--r--test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json8
-rw-r--r--test/lib/mapping.rb14
2 files changed, 14 insertions, 8 deletions
diff --git a/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json b/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json
index 027e4d82..9744e7b2 100644
--- a/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json
+++ b/test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json
@@ -1,6 +1,8 @@
-{ "maf" : "0.01",
- "control_marker" : "mCV24506226",
- "dataset" : "HC_M2_0606_P",
+{
+ "temp_uuid" : "unknown",
+"maf" : "0.01",
+"control_marker" : "mCV24506226",
+"dataset" : "HC_M2_0606_P",
"do_control" : "false",
"maf" : "0.01",
"manhattan_plot" : "False",
diff --git a/test/lib/mapping.rb b/test/lib/mapping.rb
index da580185..2678b127 100644
--- a/test/lib/mapping.rb
+++ b/test/lib/mapping.rb
@@ -5,16 +5,20 @@ end
describe MappingTest do
before do
- @agent = Mechanize.new
- @agent.agent.http.ca_file = '/etc/ssl/certs/ca-certificates.crt'
end
describe MappingTest do
it "pyLMM mapping tool selection" do
- url = $host+'/marker_regression?trait_id=1435395_s_at&dataset=HC_M2_0606_P'
- page = @agent.post(url)
+ url = $host+'/marker_regression' # ?trait_id=1435395_s_at&dataset=HC_M2_0606_P'
+ @agent = Mechanize.new
+ @agent.agent.http.ca_file = '/etc/ssl/certs/ca-certificates.crt'
+ # @agent.idle_timeout = 0.01
+
json = JSON::load(File.read('test/data/input/mapping/1435395_s_at_HC_M2_0606_P.json'))
- p json
+ # p json
+ page = @agent.post(URI.encode(url),
+ json,
+ ({'Content-Type' => 'application/x-www-form-urlencoded'}))
p page
# get the form
# form = @agent.page.form_with(:name => "my-form")