Skip to content

fix(tests): correct trust-chain test import (unblocks sociosphere validate) - #51

Merged
mdheller merged 1 commit into
mainfrom
fix/trust-chain-test-import
Aug 1, 2026
Merged

fix(tests): correct trust-chain test import (unblocks sociosphere validate)#51
mdheller merged 1 commit into
mainfrom
fix/trust-chain-test-import

Conversation

@mdheller

@mdheller mdheller commented Aug 1, 2026

Copy link
Copy Markdown
Member

tools/tests/test_trust_chain_agent_manifest_binding.py imported from tools.validate_… import main, but tools/ is not a package (no __init__.py) and every other test in the directory imports the bare from validate_… import form. Pytest collection therefore fails with ModuleNotFoundError: No module named 'tools.validate_trust_chain_agent_manifest_binding'.

This blocks the Python tests step of the validate job on every sociosphere PR (sociosphere CI clones this repo), including GBRG PR SocioProphet/sociosphere#509. Fix drops the stale tools. prefix to match the repo's own convention. pytest tests/test_trust_chain_agent_manifest_binding.py → 3 passed.

🤖 Generated with Claude Code

The test imported 'from tools.validate_trust_chain_agent_manifest_binding' but tools/ has no
__init__.py and every other test in this dir uses the bare 'from validate_… import' form, so
collection failed with ModuleNotFoundError — blocking the Python-tests 'validate' job on every
sociosphere PR (CI clones agent-registry). Matches the working convention; 3 passed locally.
Copilot AI review requested due to automatic review settings August 1, 2026 00:16
@mdheller
mdheller merged commit d7f7726 into main Aug 1, 2026
6 checks passed
@mdheller
mdheller deleted the fix/trust-chain-test-import branch August 1, 2026 00:17

Copilot AI left a comment

Copy link
Copy Markdown

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 aims to fix pytest collection failures in tools/tests/test_trust_chain_agent_manifest_binding.py by correcting an invalid import path for the trust-chain validator script under tools/.

Changes:

  • Updates the test to import validate_trust_chain_agent_manifest_binding without the tools. package prefix.

Comment on lines 3 to 7
import json
from pathlib import Path

from tools.validate_trust_chain_agent_manifest_binding import main as validate_trust_chain_agent_manifest_binding
from validate_trust_chain_agent_manifest_binding import main as validate_trust_chain_agent_manifest_binding

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