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

Remove uses of expect_is() to support compatibility with testthat 3e #231

Closed
michaelquinn32 opened this issue Jun 24, 2021 · 4 comments · Fixed by #232
Closed

Remove uses of expect_is() to support compatibility with testthat 3e #231

michaelquinn32 opened this issue Jun 24, 2021 · 4 comments · Fixed by #232

Comments

@michaelquinn32
Copy link
Contributor

I'm updating R packages to use testthat third edition, and I've noticed that DBItest is still using expect_is() in a few locations. Would you like a PR to clean this up?

@krlmlr
Copy link
Member

krlmlr commented Jun 24, 2021

This would be awesome, thanks! Is this still an issue with the current development version?

@michaelquinn32
Copy link
Contributor Author

It seem so:
https://github.com/r-dbi/DBItest/search?q=expect_is

There are also calls to expect_that() that could be fixed as well:
https://github.com/r-dbi/DBItest/search?q=expect_that

@michaelquinn32
Copy link
Contributor Author

Maybe I misunderstood what dev version means, but it's at least there in the 1.7.1 branch. See:
https://github.com/r-dbi/DBItest/blob/cran-1.7.1/R/spec-meta-get-statement.R

krlmlr added a commit that referenced this issue Sep 5, 2021
- Improve testthat 3e compatibility: remove `testthat::expect_is()` and `testthat::expect_that()` from tests (#231, @michaelquinn32).
MichaelChirico added a commit to MichaelChirico/DBItest that referenced this issue Feb 14, 2022
Follow up to r-dbi#231. Not sure how these survived :)
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 6, 2022
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 a pull request may close this issue.

2 participants