@@ -2,27 +2,31 @@ context("get_figure")
2
2
3
3
test_that(" requests made by a user who doesn't exist error a 404" , {
4
4
skip_on_cran()
5
+ skip_on_pull_request()
5
6
expect_error({
6
7
get_figure(" klmadslfjdfljdsf" , 0 )
7
8
}, " .*404.*" )
8
9
})
9
10
10
11
test_that(" requests made to retrieve a figure that doesn't exist returns a 404" , {
11
12
skip_on_cran()
13
+ skip_on_pull_request()
12
14
expect_error({
13
15
get_figure(" get_test_user" , 18324823 )
14
16
}, " .*404.*" )
15
17
})
16
18
17
19
test_that(" requests made to retrieve some elses private file errors a 403" , {
18
20
skip_on_cran()
21
+ skip_on_pull_request()
19
22
expect_error({
20
23
get_figure(" get_test_user" , 1 )
21
24
}, " .*403.*" )
22
25
})
23
26
24
27
test_that(" retrieving a public figure ... works." , {
25
28
skip_on_cran()
29
+ skip_on_pull_request()
26
30
fig <- get_figure(" get_test_user" , 0 )
27
31
# get the data behind the hash
28
32
p <- plotly_build(fig )
@@ -31,6 +35,7 @@ test_that("retrieving a public figure ... works.", {
31
35
32
36
test_that(" can add traces to a subplot figure" , {
33
37
skip_on_cran()
38
+ skip_on_pull_request()
34
39
fig <- get_figure(' chelsea_lyn' , 6366 )
35
40
p <- add_trace(fig , x = c(1 , 2 , 3 ), y = c(4 , 2 , 4 ))
36
41
l <- plotly_build(p )
@@ -39,6 +44,7 @@ test_that("can add traces to a subplot figure", {
39
44
40
45
test_that(" posting a hidden plot returns a secret key" , {
41
46
skip_on_cran()
47
+ skip_on_pull_request()
42
48
res <- plotly_POST(plot_ly(), sharing = " secret" )
43
49
key <- strsplit(res $ url , " =" )[[1 ]][2 ]
44
50
expect_true(nchar(key ) > 1 )
0 commit comments