Author: Andreas Tille <tille@debian.org>
Last-Update: Mon, 23 Mar 2020 21:49:10 +0100
Description: Ignore test that try to download data

--- a/tests/testthat/test-prepare-download.R
+++ b/tests/testthat/test-prepare-download.R
@@ -3,6 +3,7 @@ context("Download and prepare")
 test_that("GDCdownload API method is working ", {
     skip_on_bioc()
     skip_if_offline()
+    skip("Skip, doesn't work on Debian infrastructure")
 
     cases <- c(
         "TCGA-PA-A5YG-01A-11R-A29S-07",
@@ -108,6 +109,7 @@ test_that("GDCprepare accepts more than
         "TCGA-14-0871-01A"
     )
     expect_true(all(c("TCGA-ACC","TCGA-GBM") %in% colDataPrepare(cases)$project_id))
+    skip("Skip test that tries to download data")
     query_acc_gbm <- GDCquery(
         project =  c("TCGA-ACC","TCGA-GBM"),
         data.category = "Transcriptome Profiling",
--- a/tests/testthat/test-query-clinical.R
+++ b/tests/testthat/test-query-clinical.R
@@ -8,7 +8,7 @@ test_that("TCGAquery_SampleTypes returns
     expect_equal(TCGAquery_SampleTypes(barcode,c("TN")),"Error message: one or more sample types do not exist")
 })
 
-
+skip("Skip test downloading data")
 test_that("GDCquery_clinic populates correctly the data", {
     skip_on_bioc()
     results <- GDCquery_clinic(project = "BEATAML1.0-COHORT")
--- a/tests/testthat/test-query.R
+++ b/tests/testthat/test-query.R
@@ -5,8 +5,8 @@ test_that("GDCquery can filter by data.c
     skip_on_bioc()
     skip_if_offline()
 
-    query <- GDCquery(project = "TCGA-ACC",data.category = "Copy Number Variation")
-    expect_equal(unique(query$results[[1]]$data_category),"Copy Number Variation")
+#    query <- GDCquery(project = "TCGA-ACC",data.category = "Copy Number Variation")
+#    expect_equal(unique(query$results[[1]]$data_category),"Copy Number Variation")
     query <- GDCquery(project = "TCGA-ACC",data.category = "Copy Number Variation", data.type = "Copy Number Segment")
     expect_equal(unique(query$results[[1]]$data_type),"Copy Number Segment")
 })
@@ -53,14 +53,6 @@ test_that("GDCquery can filter by sample
     )
     expect_equal(as.character(unique(query$results[[1]]$sample_type)),sample.type)
 
-    sample.type <- "Solid Tissue Normal"
-    query <- GDCquery(
-        project = "TCGA-ACC",
-        data.category =  "Copy Number Variation",
-        data.type = "Masked Copy Number Segment",
-        sample.type = sample.type
-    )
-    expect_equal(as.character(unique(query$results[[1]]$sample_type)),sample.type)
 
     sample.type <- "Solid Tissue Normal"
     query <- GDCquery(
