tests(_internal): Add async tests for file_lock module#505
Open
tony wants to merge 3 commits intopr/file-lockfrom
Open
tests(_internal): Add async tests for file_lock module#505tony wants to merge 3 commits intopr/file-lockfrom
tony wants to merge 3 commits intopr/file-lockfrom
Conversation
why: Required for async test support. what: - Add pytest-asyncio to dev and testing dependency groups
why: Test async file locking functionality. what: - Add TestAsyncFileLock with 8 async tests - Add TestAsyncAtomicInit with 4 async tests - Tests cover context manager, acquire/release, timeout, concurrent access
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pr/file-lock #505 +/- ##
================================================
+ Coverage 55.56% 57.23% +1.66%
================================================
Files 40 41 +1
Lines 6117 6243 +126
Branches 1095 1095
================================================
+ Hits 3399 3573 +174
+ Misses 2202 2151 -51
- Partials 516 519 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AsyncFileLockandasync_atomic_initDepends on #501.
Test plan