Skip to content

Commit bffc14c

Browse files
committed
Infra updates
1 parent 563a830 commit bffc14c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
S3method(print,ucimlrepo_list_of_available_datasets)
34
export(fetch_ucirepo)
45
export(list_available_datasets)

tests/testthat/test-list-available-datasets.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ test_that("list_available_datasets(): graceful errors", {
1313
test_that("list_available_datasets(): search", {
1414
skip_on_cran()
1515

16+
df <- list_available_datasets(area = 'climate and environment')
17+
1618
# Check that the function outputs text
17-
expect_output(df <- list_available_datasets(area = 'climate and environment'))
19+
expect_output(print(df))
1820

1921
# Check dataframe is present
2022
expect_s3_class(df, 'data.frame')
@@ -23,10 +25,10 @@ test_that("list_available_datasets(): search", {
2325
expect_equal(names(df), c('id', 'name', 'url'))
2426

2527
# Check that the function outputs text when filter and area are set
26-
expect_output(list_available_datasets(filter = 'python', area = 'climate and environment'))
28+
expect_output(print(list_available_datasets(filter = 'python', area = 'climate and environment')))
2729

2830
# Check that the function outputs text when search and area are set
29-
expect_output(list_available_datasets(search = 'nino', area = 'climate and environment'))
31+
expect_output(print(list_available_datasets(search = 'nino', area = 'climate and environment')))
3032

3133
})
3234

0 commit comments

Comments
 (0)