Skip to content

tests(_internal): Add async tests for file_lock module - #505

Merged
tony merged 3 commits into
masterfrom
pr/file-lock-asyncio
Nov 29, 2026
Merged

tony merged 3 commits into
masterfrom
pr/file-lock-asyncio

Conversation

@tony

@tony tony commented Dec 30, 2025

Copy link
Copy Markdown
Member

Summary

  • Add async tests for AsyncFileLock and async_atomic_init
  • Add pytest-asyncio dependency and configuration

Depends on #501.

Test plan

  • 8 async tests for AsyncFileLock (context manager, acquire/release, reentrant, timeout, etc.)
  • 4 async tests for async_atomic_init (first init, already done, sync fn, concurrent)

@codecov

codecov Bot commented Dec 30, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.20635% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.89%. Comparing base (3114eb6) to head (15acdae).

Files with missing lines Patch % Lines
tests/_internal/test_file_lock_async.py 99.20% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #505      +/-   ##
==========================================
+ Coverage   73.47%   73.89%   +0.42%     
==========================================
  Files          54       55       +1     
  Lines       12008    12134     +126     
  Branches     1741     1741              
==========================================
+ Hits         8823     8967     +144     
+ Misses       2356     2343      -13     
+ Partials      829      824       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony tony mentioned this pull request Apr 26, 2026
tony added a commit that referenced this pull request Apr 26, 2026
@tony
tony force-pushed the pr/file-lock-asyncio branch from 77787d2 to 9456c94 Compare April 26, 2026 12:04
@tony tony mentioned this pull request Nov 28, 2026
17 of 24 tasks
tony added a commit that referenced this pull request Nov 29, 2026
@tony
tony force-pushed the pr/file-lock-asyncio branch from 9456c94 to 179ed93 Compare November 29, 2026 00:34
@tony tony mentioned this pull request Nov 29, 2026
17 of 30 tasks
@tony
tony changed the base branch from pr/file-lock to master November 29, 2026 02:59
tony added 3 commits November 28, 2026 20:59
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
@tony
tony force-pushed the pr/file-lock-asyncio branch from 179ed93 to 15acdae Compare November 29, 2026 03:01
@tony
tony merged commit a7bd3f2 into master Nov 29, 2026
9 checks passed
@tony
tony deleted the pr/file-lock-asyncio branch November 29, 2026 10:11
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.

1 participant