Skip to content

Commit cf8b87a

Browse files
committed
test: push teaching template to GitHub in tests
tags: test Why? - Testing "push on GitHub" with flat teaching template is strategic
1 parent 385b53d commit cf8b87a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/flat_init_share_on_github.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ test_that("init_share_on_github works", {
215215
# Only create the project if specifically asked by maintainers
216216
path_project <- file.path(tempdir(), paste0("fusen.github.", packageVersion("fusen")))
217217
# path_project <- tempfile("fusen.github.proj")
218-
the_devs <- create_fusen(path = path_project, template = "minimal", with_git = TRUE, open = FALSE)
218+
the_devs <- create_fusen(path = path_project, template = "teaching", with_git = TRUE, open = FALSE)
219219
the_flat <- the_devs[grep("flat", the_devs)]
220220
# Follow the "dev/0-dev_history.Rmd"
221221
usethis::with_project(path_project, {
@@ -233,7 +233,7 @@ test_that("init_share_on_github works", {
233233
usethis::use_mit_license("John Doe")
234234
235235
# Inflate ?
236-
# inflate(flat_file = the_flat, vignette_name = "Get started", open_vignette = FALSE)
236+
inflate(flat_file = the_flat, vignette_name = "Get started", open_vignette = FALSE)
237237
})
238238
239239
usethis::with_project(path_project, {

tests/testthat/test-init_share_on_github.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test_that("init_share_on_github works", {
77
# Only create the project if specifically asked by maintainers
88
path_project <- file.path(tempdir(), paste0("fusen.github.", packageVersion("fusen")))
99
# path_project <- tempfile("fusen.github.proj")
10-
the_devs <- create_fusen(path = path_project, template = "minimal", with_git = TRUE, open = FALSE)
10+
the_devs <- create_fusen(path = path_project, template = "teaching", with_git = TRUE, open = FALSE)
1111
the_flat <- the_devs[grep("flat", the_devs)]
1212
# Follow the "dev/0-dev_history.Rmd"
1313
usethis::with_project(path_project, {
@@ -25,7 +25,7 @@ test_that("init_share_on_github works", {
2525
usethis::use_mit_license("John Doe")
2626

2727
# Inflate ?
28-
# inflate(flat_file = the_flat, vignette_name = "Get started", open_vignette = FALSE)
28+
inflate(flat_file = the_flat, vignette_name = "Get started", open_vignette = FALSE)
2929
})
3030

3131
usethis::with_project(path_project, {

0 commit comments

Comments
 (0)