Skip to content

Commit

Permalink
Also add some tests for the GP prac clusters OpenData
Browse files Browse the repository at this point in the history
  • Loading branch information
Moohan committed Aug 9, 2023
1 parent 18a2a4d commit 55be6c2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/testthat/test-get_gpprac_opendata.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
skip_if_offline()

test_that("GP prac cluster lookup is correct", {
gp_cluster_lookup <- expect_warning(get_gpprac_opendata())

expect_s3_class(gp_cluster_lookup, "tbl_df")
expect_named(
gp_cluster_lookup,
c(
"gpprac",
"practice_name",
"postcode",
"cluster",
"partnership",
"health_board"
)
)
})

0 comments on commit 55be6c2

Please sign in to comment.