-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update variables to pass tests * Update indiv number of variables * Change exists tests to read * Set an environment var to make testthat use multiple CPUs --------- Co-authored-by: James McMahon <[email protected]>
- Loading branch information
Showing
7 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TESTTHAT_CPUS = 12 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
skip_on_ci() | ||
|
||
|
||
test_that("Episode files are readable", { | ||
# Episode files | ||
expect_true(fs::file_access(gen_file_path("1415", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1516", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1617", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1718", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1819", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1920", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2021", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2122", "episode"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2223", "episode"), mode = "read")) | ||
}) | ||
|
||
|
||
test_that("Individual files are readable", { | ||
expect_true(fs::file_access(gen_file_path("1415", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1516", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1617", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1718", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1819", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("1920", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2021", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2122", "individual"), mode = "read")) | ||
expect_true(fs::file_access(gen_file_path("2223", "individual"), mode = "read")) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters