-
Notifications
You must be signed in to change notification settings - Fork 1
ATOM-REFACTOR-20260119-001-pytest-compatible-tests #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATOM-REFACTOR-20260119-001-pytest-compatible-tests #169
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: toolate28 <105518313+toolate28@users.noreply.github.com>
Co-authored-by: toolate28 <105518313+toolate28@users.noreply.github.com>
…sertion Co-authored-by: toolate28 <105518313+toolate28@users.noreply.github.com>
…ot/sub-pr-156-again Signed-off-by: toolated <toolated@pm.me>
🌀 Agent Review - Coherence Analysis🚨 Critical - Wave function collapse imminentOverall Coherence: NaN%📊 Detailed Metrics
📈 Analysis Summary
🔬 Ethical Quantum Simulation Status
|
a757fc0
into
copilot/refine-prompt-toolkit-collaboration
There was a problem hiding this comment.
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 successfully refactors the test file from a custom test runner to standard pytest conventions, making it discoverable and executable by pytest's test discovery mechanism.
Changes:
- Removed custom test infrastructure (
__init__,run_all(), and customtest()method) incompatible with pytest - Converted all 7 test methods to use standard
assertstatements with descriptive error messages - Added
if __name__ == "__main__"block for standalone execution viapytest.main()
| assert ("AWI" in result.content or "intent" in result.content.lower()), ( | ||
| "Content should contain AWI-related text" | ||
| ) |
Copilot
AI
Jan 19, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The outer parentheses around these assert conditions are unnecessary. In pytest, multi-line assertions can be written without wrapping the entire condition in parentheses. For cleaner code, consider using implicit line continuation within the assertion or only adding parentheses where Python requires them for line continuation. For example, this could be written as:
assert "AWI" in result.content or "intent" in result.content.lower(), \
"Content should contain AWI-related text"This applies to similar assertions throughout the file (lines 44-46, 58-60, 61-63, 113-115, 149-151, 152-154, 165-167, 172-174).
Summary
Refactored
test_awi_prompt_gen.pyfrom custom test runner to standard pytest conventions, removing incompatible patterns that prevented pytest discovery and execution.ATOM Tag
ATOM:
ATOM-REFACTOR-20260119-001-pytest-compatible-testsWhy
The test class used custom
__init__,run_all(), andtest()methods that pytest cannot recognize. Pytest expects standard test classes without custom__init__and standardassertstatements instead of custom assertion methods.What changed
Before:
After:
Changes
__init__,run_all(),test()method)assertstatementsif __name__ == "__main__"block for standalone execution via pytestVerification / Testing
pytest experiments/test_awi_prompt_gen.py -vpython experiments/test_awi_prompt_gen.pyClaude Interaction
You can interact with Claude in this PR by:
claude:review,claude:help,claude:analyzeExample commands:
@claude please review this PR for ATOM compliance@claude explain the changes in scripts/atom-track.sh@claude check for security issues@claude suggest improvementsNotes
TestAwiPromptGenclass for structurerequirements-dev.txtChecklist
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.