Skip to content

test: remove orphaned git_repo fixture and test_utils from .rhiza/tests - #877

Merged
tschm merged 3 commits into
mainfrom
cleanup-rhiza-conftest
Jul 10, 2026
Merged

test: remove orphaned git_repo fixture and test_utils from .rhiza/tests#877
tschm merged 3 commits into
mainfrom
cleanup-rhiza-conftest

Conversation

@tschm

@tschm tschm commented Jul 10, 2026

Copy link
Copy Markdown
Member

What

Removes now-dead test scaffolding from .rhiza/tests/:

  • conftest.py: drop the git_repo fixture and its MOCK_MAKE_SCRIPT/MOCK_UV_SCRIPT helpers, plus the now-unused GIT/os/shutil/subprocess imports. Keep the still-used root and logger session fixtures.
  • test_utils.py: deleted — nothing imports it any longer.

Why

The git_repo fixture's only consumer, .rhiza/tests/test_git_repo_fixture.py, was deleted in #876. That left the fixture, its mock scripts, and test_utils.py (whose GIT export the fixture used; its other helpers lost their consumer with the same deletion) as dead code.

Note on the SYNC template

.rhiza/tests/ flows down from jebel-quant/rhiza via SYNC, so this is a local stopgap. The matching upstream fix — relocating the git_repo fixture into rhiza's own suite so it stops shipping to consumers — is Jebel-Quant/rhiza#1389. Once that merges, the next sync produces the same result.

Verification

.rhiza/tests suite: 34 passed.

🤖 Generated with Claude Code

tschm and others added 2 commits July 10, 2026 09:10
The git_repo fixture (and its MOCK_MAKE_SCRIPT / MOCK_UV_SCRIPT mock
scripts) became dead code when its only consumer,
.rhiza/tests/test_git_repo_fixture.py, was deleted in #876.

Drop the fixture, the mock scripts, and the now-unused GIT/os/shutil/
subprocess imports. Keep the still-used root and logger session
fixtures and refresh the module docstring accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
test_utils.py became fully unused: its run_make/strip_ansi/
setup_rhiza_git_repo helpers lost their consumer when
test_git_repo_fixture.py was deleted in #876, and its GIT export
lost its last user when the git_repo fixture was removed in the
previous commit. No test module imports it any longer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 10, 2026 05:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes dead test scaffolding from the synced .rhiza/tests/ suite in jquantstats, following the earlier removal of the only consumer of the git_repo fixture.

Changes:

  • Deleted .rhiza/tests/test_utils.py (previously contained shared helper utilities).
  • Simplified .rhiza/tests/conftest.py by removing the unused git_repo fixture and its mock-script helpers, leaving only the session fixtures (root, logger).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.rhiza/tests/conftest.py Removes unused git_repo fixture + related helpers/imports; keeps root/logger.
.rhiza/tests/test_utils.py Deletes now-orphaned shared test utilities module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .rhiza/tests/conftest.py
Comment on lines 3 to +6
This file and its associated tests flow down via a SYNC action from the jebel-quant/rhiza repository
(https://github.com/jebel-quant/rhiza).

Provides test fixtures for testing git-based workflows and version management.
Provides shared session-scoped fixtures (``root`` and ``logger``) used across the test modules.
The .rhiza/tests/stress/ directory held only scaffolding (conftest with
--iterations/--workers options + fixtures, __init__, README) and no
stress tests. The `make stress` target operates on ${TESTS_FOLDER}/stress
(tests/stress), not this directory, so nothing referenced it.

Also refresh .rhiza/tests/README.md, which was stale: it still documented
test_git_repo_fixture.py, test_utils.py, the git_repo fixture, and the
stress folder — all now removed from this repo.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tschm
tschm merged commit 105aaeb into main Jul 10, 2026
68 checks passed
@tschm
tschm deleted the cleanup-rhiza-conftest branch July 10, 2026 05:38
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.

2 participants