Skip to content

Add pytest unit tests for hygiene_scan.py pure helper functions#1

Merged
TonkaToyXL merged 1 commit into
mainfrom
add-pytest-unit-tests-8385729114170731151
Jun 22, 2026
Merged

Add pytest unit tests for hygiene_scan.py pure helper functions#1
TonkaToyXL merged 1 commit into
mainfrom
add-pytest-unit-tests-8385729114170731151

Conversation

@TonkaToyXL

Copy link
Copy Markdown
Owner

This PR adds pytest unit tests for the pure helper functions in hygiene_scan.py. It creates requirements-dev.txt to track pytest as a development dependency. The test file uses pytest features like tmp_path and monkeypatch to effectively simulate the user's home directory and test environment variables without creating or reading files on the actual filesystem. hygiene_scan.py itself has not been modified.


PR created automatically by Jules for task 8385729114170731151 started by @TonkaToyXL

- 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>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@TonkaToyXL TonkaToyXL merged commit 21dc121 into main Jun 22, 2026
1 check passed
@TonkaToyXL TonkaToyXL deleted the add-pytest-unit-tests-8385729114170731151 branch June 22, 2026 23:37
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