tests/testthat/test-get_past_sales_data.R

test_that("Valid search returns `data.frame`/`tibble`", {
    expect_s3_class(
        get_past_sales_data("Swinger Hill, ACT", 2020, quiet = TRUE),
        "data.frame")
})

test_that("Empty search returns zero-row `tibble`", {
    expect_warning(
        get_past_sales_data("Arboretrum, ACT", 2020),
        "Could not find")
})

Try the allhomes package in your browser

Any scripts or data that you put into this service are public.

allhomes documentation built on Sept. 9, 2022, 9:06 a.m.