Skip to content

Commit

Permalink
test: add tests for new R6
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig committed Aug 29, 2024
1 parent 03df184 commit 04b0a29
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/test-entrata-api.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
test_that("EntrataAPI class works as expected", {
cfg <- list(
username = "testuser",
password = "testpass",
base_url = "https://api.entrata.com"
)

api <- EntrataAPI$new(config = cfg)
expect_s3_class(api, "EntrataAPI")
expect_equal(api$config$username, "testuser")
expect_equal(api$config$password, "testpass")
expect_equal(api$config$base_url, "https://api.entrata.com")
})

0 comments on commit 04b0a29

Please sign in to comment.