diff options
author | zsloan | 2018-04-16 10:46:56 -0500 |
---|---|---|
committer | GitHub | 2018-04-16 10:46:56 -0500 |
commit | a58a4c3b8ee4f7256a18c99542ff6a9f355c0a2e (patch) | |
tree | 1e7677fa1fa210a2a957855578cd3ac3a47b720b /test/requests/navigation_tests.py | |
parent | 270f86c41f7c90cc4ca51bca0aec789a09a36a0e (diff) | |
parent | ebbc8c67c13b44df98ea3c2b355e86f77572543b (diff) | |
download | genenetwork2-a58a4c3b8ee4f7256a18c99542ff6a9f355c0a2e.tar.gz |
Merge pull request #317 from pjotrp/testing
Testing
Diffstat (limited to 'test/requests/navigation_tests.py')
-rw-r--r-- | test/requests/navigation_tests.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/requests/navigation_tests.py b/test/requests/navigation_tests.py new file mode 100644 index 00000000..eda27324 --- /dev/null +++ b/test/requests/navigation_tests.py @@ -0,0 +1,15 @@ +from __future__ import print_function +import re +import requests +from lxml.html import parse + +def check_navigation(args_obj, parser): + print("") + print("Checking navigation.") + + host = args_obj.host + url = host + "/show_trait?trait_id=1435395_s_at&dataset=HC_M2_0606_P" + print("URL: ", url) + page = requests.get(url) + # Page is built by the javascript, hence using requests fails for this. + # Investigate use of selenium maybe? |