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

Create testthat/setup.R #35

Closed
jonthegeek opened this issue Oct 11, 2023 · 1 comment · Fixed by #38
Closed

Create testthat/setup.R #35

jonthegeek opened this issue Oct 11, 2023 · 1 comment · Fixed by #38
Milestone

Comments

@jonthegeek
Copy link
Owner

Along these lines:

library(httptest2)

# Don't repeat the base url in httptest2 recording paths.
set_redactor(function(x) {
  gsub_response(x, paste0("https://api.apis.guru/v2", "/"), "", fixed = TRUE)
})
@jonthegeek jonthegeek added this to the v0.1 milestone Oct 16, 2023
@jonthegeek
Copy link
Owner Author

httptest2::use_httptest2() covers a basic version of this. Do that instead of use_package'ing it.

jonthegeek added a commit that referenced this issue Oct 16, 2023
jonthegeek added a commit that referenced this issue Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant