Skip to content

Commit

Permalink
✅ add test for EpiPox and EpiRSV login
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma committed Apr 28, 2023
1 parent b6b8443 commit f526f67
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/testthat/test-login.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,18 @@ test_that("invalid login fails", {
expect_error(login(username = username, password = password),
"Username or password wrong!")
})

test_that("EpiPox login works", {
username = Sys.getenv("GISAIDR_USERNAME")
password = Sys.getenv("GISAIDR_PASSWORD")
credentials <- login(username = username, password = password, database="EpiPox")
expect_true(is.list(credentials))
})


test_that("EpiRSV login works", {
username = Sys.getenv("GISAIDR_USERNAME")
password = Sys.getenv("GISAIDR_PASSWORD")
credentials <- login(username = username, password = password, database="EpiRSV")
expect_true(is.list(credentials))
})

0 comments on commit f526f67

Please sign in to comment.