Skip to content

DBItest causes warning on testthat 3rd edition (context() is deprecated) #263

@MichaelChirico

Description

@MichaelChirico

testthat::context() is deprecated in the 3rd edition, but it's always called here:

context(test_context)

Should that simply be escaped?

if (testthat::edition_get() < 3) context(test_context)

Or given the current version requirement on testthat, more robustly:

if (packageVersion("testthat") < "3.0.0" || testthat::edition_get() < 3) context(test_context)

Happy to file a PR for whatever's the desired behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions