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

expect_error(regexp = NA) -> expect_no_condition() #1188

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Conversation

simonpcouch
Copy link
Contributor

Related to #1096 but does not close—these are just the cases where regexp = NA, i.e. we're testing that there's no error. For all but one case, we can actually test the more stricter version, that there is no condition.

regexp = NA
)
expect_no_error(expect_no_warning(
set_dependency("bart", "dbarts", "dbarts")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a <dplyr_regroup> condition with no message here; it's not visible at all as a user, so just opted to ignore it.

Copy link
Member

@EmilHvitfeldt EmilHvitfeldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You missed a couple in

  • test-descriptors.R: 202, 208
  • test-extract.R: 93
  • test-logistic_reg.R: 180
  • test-misc.R: 76, 80, 164
  • test-svm_linear.R: 51

tests/testthat/test-logistic_reg.R Outdated Show resolved Hide resolved
@simonpcouch simonpcouch merged commit eba5762 into main Sep 9, 2024
10 checks passed
@simonpcouch simonpcouch deleted the regexp-na-1096 branch September 9, 2024 18:09
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants