Skip to content

Commit

Permalink
try following the link?
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Jun 23, 2023
1 parent 1908b15 commit b7bd756
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-hub_download.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_on_cran()

test_that("hub_download", {
file <- file(hub_download("gpt2", filename = "config.json"))
file <- hub_download("gpt2", filename = "config.json")

expect_equal(
jsonlite::fromJSON(file)$architectures,
jsonlite::fromJSON(fs::link_path(file))$architectures,
"GPT2LMHeadModel"
)

Expand Down

0 comments on commit b7bd756

Please sign in to comment.