Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] set_golem_name_tests does not work as expected in set_golem_name #1161

Closed
ColinFay opened this issue Aug 2, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ColinFay
Copy link
Member

ColinFay commented Aug 2, 2024

golem::create_golem("pouet")
usethis::use_test()
golem::set_golem_name("pj") # calls set_golem_name_tests()
> readLines("tests/testthat.R") |> cat(sep = "\n")
# This file is part of the standard setup for testthat.
# It is recommended that you do not modify it.
#
# Where should you do additional test configuration?
# Learn more about the roles of various files in:
# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
# * https://testthat.r-lib.org/articles/special-files.html

library(testthat)
library(pouet) # Should be pj

test_check("pouet") # Should be pj
@ColinFay ColinFay added the bug Something isn't working label Aug 2, 2024
@ColinFay ColinFay self-assigned this Aug 2, 2024
@ColinFay ColinFay changed the title [BUG] set_golem_name_tests does not work as expected [BUG] set_golem_name_tests does not work as expected in set_golem_name Aug 2, 2024
@ColinFay
Copy link
Member Author

ColinFay commented Aug 5, 2024

This is due to lazy evaluation.

ColinFay added a commit that referenced this issue Aug 5, 2024
@ColinFay
Copy link
Member Author

ColinFay commented Aug 7, 2024

Closed via 0d0f679

@ColinFay ColinFay closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant