@@ -7,7 +7,6 @@ endpoints <- get_endpoints()
7
7
8
8
test_that(" API returns expected df names for all endpoints" , {
9
9
skip_on_cran()
10
- skip_on_ci()
11
10
12
11
broken_endpoints <- c(
13
12
" cpc_subclass" ,
@@ -37,7 +36,6 @@ test_that("API returns expected df names for all endpoints", {
37
36
38
37
test_that(" DSL-based query returns expected results" , {
39
38
skip_on_cran()
40
- skip_on_ci()
41
39
42
40
query <- with_qfuns(
43
41
and(
@@ -54,7 +52,6 @@ test_that("DSL-based query returns expected results", {
54
52
55
53
test_that(" You can download up to 9,000+ records" , {
56
54
skip_on_cran()
57
- skip_on_ci()
58
55
59
56
# Should return 9,000+ rows
60
57
query <- with_qfuns(
@@ -69,7 +66,6 @@ test_that("You can download up to 9,000+ records", {
69
66
70
67
test_that(" search_pv can pull all fields for all endpoints" , {
71
68
skip_on_cran()
72
- skip_on_ci()
73
69
74
70
troubled_endpoints <- c(
75
71
" cpc_subclass" , " location" ,
@@ -91,7 +87,6 @@ test_that("search_pv can pull all fields for all endpoints", {
91
87
92
88
test_that(" Sort option works as expected" , {
93
89
skip_on_cran()
94
- skip_on_ci()
95
90
96
91
out <- search_pv(
97
92
qry_funs $ neq(assignee_id = " " ),
@@ -106,7 +101,6 @@ test_that("Sort option works as expected", {
106
101
107
102
test_that(" search_pv properly URL encodes queries" , {
108
103
skip_on_cran()
109
- skip_on_ci()
110
104
111
105
# Covers https://github.com/ropensci/patentsview/issues/24
112
106
# need to use the assignee endpoint now
@@ -135,7 +129,6 @@ test_that("search_pv properly URL encodes queries", {
135
129
136
130
test_that(" We won't expose the user's patentsview API key to random websites" , {
137
131
skip_on_cran()
138
- skip_on_ci()
139
132
140
133
# We will try to call the api that tells us who is currently in space
141
134
in_space_now_url <- " http://api.open-notify.org/astros.json"
@@ -145,7 +138,6 @@ test_that("We won't expose the user's patentsview API key to random websites", {
145
138
146
139
test_that(" We can call all the legitimate HATEOAS endpoints" , {
147
140
skip_on_cran()
148
- skip_on_ci()
149
141
150
142
single_item_queries <- c(
151
143
" cpc_subclass/A01B/" ,
@@ -215,7 +207,6 @@ test_that("We can call all the legitimate HATEOAS endpoints", {
215
207
216
208
test_that(" posts and gets return the same data" , {
217
209
skip_on_cran()
218
- skip_on_ci()
219
210
220
211
bad_eps <- c(
221
212
" cpc_subclass"
@@ -256,7 +247,6 @@ test_that("posts and gets return the same data", {
256
247
257
248
test_that(" nested shorthand produces the same results as fully qualified ones" , {
258
249
skip_on_cran()
259
- skip_on_ci()
260
250
261
251
# the API now allows a shorthand in the fields/f: parameter
262
252
# just the group name will retrieve all that group's attributes
@@ -274,7 +264,6 @@ test_that("nested shorthand produces the same results as fully qualified ones",
274
264
275
265
test_that(" the 'after' parameter works properly" , {
276
266
skip_on_cran()
277
- skip_on_ci()
278
267
279
268
sort <- c(" patent_id" = " asc" )
280
269
big_query <- qry_funs $ eq(patent_date = " 2000-01-04" ) # 3003 total_hits
@@ -311,7 +300,6 @@ test_that("the 'after' parameter works properly", {
311
300
312
301
test_that(" the documentation and Swagger UI URLs work properly" , {
313
302
skip_on_cran()
314
- skip_on_ci()
315
303
316
304
documentation_url <-
317
305
' https://search.patentsview.org/api/v1/patent/?q={"_text_any":{"patent_title":"COBOL cotton gin"}}&s=[{"patent_id": "asc" }]&o={"size":50}&f=["inventors.inventor_name_last","patent_id","patent_date","patent_title"]'
@@ -328,7 +316,6 @@ test_that("the documentation and Swagger UI URLs work properly", {
328
316
329
317
test_that(" an error occurs if all_pages is TRUE and there aren't any results" , {
330
318
skip_on_cran()
331
- skip_on_ci()
332
319
333
320
too_early <- qry_funs $ lt(patent_date = " 1976-01-01" )
334
321
@@ -345,7 +332,6 @@ test_that("an error occurs if all_pages is TRUE and there aren't any results", {
345
332
346
333
test_that(" we can retrieve all_pages = TRUE without specifiying fields" , {
347
334
skip_on_cran()
348
- skip_on_ci()
349
335
350
336
query <- qry_funs $ eq(patent_date = " 1976-01-06" )
351
337
sort <- c(" patent_type" = " asc" , " patent_id" = " asc" )
@@ -362,7 +348,6 @@ test_that("we can retrieve all_pages = TRUE without specifiying fields", {
362
348
# the two responses match, then we've correctly handled throttling errors.
363
349
test_that(" Throttled requests are automatically retried" , {
364
350
skip_on_cran()
365
- skip_on_ci()
366
351
367
352
res <- search_pv(' {"_gte":{"patent_date":"2007-01-04"}}' , size = 50 )
368
353
patent_ids <- res $ data $ patents $ patent_id
@@ -436,7 +421,6 @@ test_that("Throttled requests are automatically retried", {
436
421
437
422
test_that(" we can sort on an unrequested field across page boundaries" , {
438
423
skip_on_cran()
439
- skip_on_ci()
440
424
441
425
# total_hits = 5,352
442
426
query <- qry_funs $ in_range(patent_date = c(" 1976-01-01" , " 1976-01-31" ))
@@ -467,7 +451,6 @@ test_that("we can sort on an unrequested field across page boundaries", {
467
451
468
452
test_that(" sort works across page boundaries" , {
469
453
skip_on_cran()
470
- skip_on_ci()
471
454
472
455
sort <- c(" patent_type" = " desc" , " patent_id" = " desc" )
473
456
results <- search_pv(
0 commit comments