diff options
author | Pjotr Prins | 2018-02-15 15:00:47 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-02-15 15:00:47 +0000 |
commit | 3a26e0fb7b88cd9c105a1f7e9ca9d5a8b2130d82 (patch) | |
tree | 8026d9511aec117d4010f0498c3eebf0d1bd95e6 /test/requests | |
parent | 4097723cfd6331f41d8b8e7abec322cb12f39f10 (diff) | |
download | genenetwork2-3a26e0fb7b88cd9c105a1f7e9ca9d5a8b2130d82.tar.gz |
Requests added
Diffstat (limited to 'test/requests')
-rwxr-xr-x | test/requests/test-website.py | 20 |
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 |