Skip to content

Add tests for #515: filelock version independence#516

Closed
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:test/issue-515
Closed

Add tests for #515: filelock version independence#516
Serhan-Asad wants to merge 1 commit intopromptdriven:mainfrom
Serhan-Asad:test/issue-515

Conversation

@Serhan-Asad
Copy link
Contributor

Summary

Adds tests to address the CI failure caused by filelock v3.21.0 behavior changes (#515).

Test Files

  • tests/test_auto_deps_lock.py

Test Coverage

  • Total Tests: 5
  • Framework: pytest
  • Status: All passing

What These Tests Verify

  1. Concurrent calls serialize and share cache (existing, fixed)
  2. Lock file location (existing, fixed)
  3. No CWD artifacts (existing)
  4. Filelock version independence (new) - verifies auto_deps works regardless of whether filelock deletes lock files on release
  5. Force-scan ignores cache (new) - verifies force_scan=True bypasses cached results

Test Execution

pytest tests/test_auto_deps_lock.py -v

Next Steps

  1. Review the generated tests
  2. Run tests locally to verify
  3. Adjust tests if needed
  4. Mark PR as ready for review

Closes #515


Generated by PDD agentic test workflow

…romptdriven#515)

- Add TestFilelockVersionIndependence: verifies auto_deps works regardless
  of whether filelock deletes lock files on release
- Add TestForceScanIgnoresCache: verifies force_scan=True bypasses cache

Closes promptdriven#515

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

CI failure: filelock 3.21.0 deletes lock files on release, breaking test_auto_deps_lock.py

1 participant