Add pytest unit tests for hygiene_scan.py pure helper functions#1
Conversation
- Add `requirements-dev.txt` with `pytest` - Add `tests/test_hygiene_scan.py` with tests for: - `existing_roots` - `is_tool_managed` - `is_active_runtime_cache` - `is_app_owned_empty_dir` - `is_ignored_broken_link` - Use `tmp_path` and `monkeypatch` to avoid touching real `HOME` dir. Co-authored-by: TonkaToyXL <83329120+TonkaToyXL@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This PR adds pytest unit tests for the pure helper functions in
hygiene_scan.py. It createsrequirements-dev.txtto trackpytestas a development dependency. The test file usespytestfeatures liketmp_pathandmonkeypatchto effectively simulate the user's home directory and test environment variables without creating or reading files on the actual filesystem.hygiene_scan.pyitself has not been modified.PR created automatically by Jules for task 8385729114170731151 started by @TonkaToyXL