aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPjotr Prins2018-02-15 15:00:47 +0000
committerPjotr Prins2018-03-26 09:29:29 +0000
commit375935b23778148eba40ebce4a4f4def823aa3f0 (patch)
treee0fd6f21e4e64bf54a454cb277523631069aa135 /test
parente7f80eb6cf60bb117f943132049ec0b220ddcab4 (diff)
downloadgenenetwork2-375935b23778148eba40ebce4a4f4def823aa3f0.tar.gz
Requests added
Diffstat (limited to 'test')
-rwxr-xr-xtest/requests/test-website.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/requests/test-website.py b/test/requests/test-website.py
new file mode 100755
index 00000000..d02b71aa
--- /dev/null
+++ b/test/requests/test-website.py
@@ -0,0 +1,20 @@
+# Run with something like
+#
+# env GN2_PROFILE=/home/wrk/opt/gn-latest ./bin/genenetwork2 ./etc/default_settings.py -c ../test/requests/test-website.py http://localhost:5003
+#
+# Mostly to pick up the Guix GN2_PROFILE and python modules
+
+import requests as req
+import sys
+
+print "Mechanical Rob firing up..."
+
+if len(sys.argv)<1:
+ raise "Problem with arguments"
+
+url = sys.argv[1]
+print url
+
+r = req.get(url)
+
+print r