aboutsummaryrefslogtreecommitdiff
path: root/test/requests/link_checker.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-26 01:22:36 +0300
committerBonfaceKilz2020-08-26 01:22:36 +0300
commit900ecc6680efcc00b94f87b234770c03018cc236 (patch)
treec8fd2e811af2873b9667a7e3756d2ef33960ca11 /test/requests/link_checker.py
parent666a423b0b2f8cf98b9e70ed3dcf1c6dc3896b1d (diff)
parentba2865102b77536c2b219079fea29dc168467020 (diff)
downloadgenenetwork2-900ecc6680efcc00b94f87b234770c03018cc236.tar.gz
Merge branch 'testing' into build/python3-migration
Diffstat (limited to 'test/requests/link_checker.py')
-rw-r--r--test/requests/link_checker.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py
index fa70747d..5e16a5cd 100644
--- a/test/requests/link_checker.py
+++ b/test/requests/link_checker.py
@@ -76,3 +76,26 @@ def check_links(args_obj, parser):
check_page(
host,
host+"/show_trait?trait_id=1435395_s_at&dataset=HC_M2_0606_P")
+
+
+def check_packaged_js_files(args_obj, parser):
+ host = args_obj.host
+ js_files = [
+ # Datatables Extensions:
+ "/DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css",
+ "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js",
+ "/DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css",
+ "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js",
+ "/DataTablesExtensions/colResize/dataTables.colResize.js",
+ "/DataTablesExtensions/colReorder/js/dataTables.colReorder.js",
+ "/DataTablesExtensions/buttons/js/buttons.colVis.min.js",
+ "/DataTables/js/jquery.dataTables.js",
+ "/DataTablesExtensions/scroller/css/scroller.dataTables.min.css",
+ # Datatables plugins:
+ "/DataTablesExtensions/plugins/sorting/natural.js",
+ "/DataTablesExtensions/plugins/sorting/scientific.js",
+ ]
+
+ print("Checking links")
+ for link in js_files:
+ verify_link(host+link)