Skip to content

Fix deprecated testthat::with_mock() warnings#24

Merged
chezou merged 4 commits intomasterfrom
fix-deprecated-with-mock
Aug 9, 2025
Merged

Fix deprecated testthat::with_mock() warnings#24
chezou merged 4 commits intomasterfrom
fix-deprecated-with-mock

Conversation

@chezou
Copy link
Copy Markdown
Contributor

@chezou chezou commented Aug 9, 2025

This PR migrates from deprecated testthat::with_mock() to the mockery package to resolve deprecation warnings.

Closes #22, #23

Aki Ariga added 4 commits August 9, 2025 20:57
- Use platform-appropriate temporary paths (C:/tmp for Windows, /tmp for Linux)
- Extract fake embulk setup to common function to avoid file locking issues
- Use recursive directory creation for better cross-platform compatibility
- Ensure proper cleanup in each test case
- Resolve R CMD check NOTE about non-standard top-level file
- Ensure clean package build for CRAN submission
- Add Author field to DESCRIPTION for compatibility
- Remove LazyData field (no data directory exists)
- Extend .Rbuildignore to exclude hidden files and check directories
- Now passes R CMD check with Status: OK
@chezou chezou merged commit 7394ede into master Aug 9, 2025
7 checks passed
@chezou chezou deleted the fix-deprecated-with-mock branch August 9, 2025 21:25
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 this pull request may close these issues.

with_mock() is going away

1 participant