mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-04-24 13:45:02 +00:00
- Created ExampleAgent, BuildAgent, TestAgent, LintAgent, DocGenAgent, DeployAgent, DepUpdateAgent, RoadmapAgent under agents/ - Added CLI stubs and READMEs for each agent - Updated AGENTS.md with all agent entries Co-authored-by: openhands <openhands@all-hands.dev>
21 lines
645 B
Python
21 lines
645 B
Python
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
def test_default_message():
|
|
script = Path(__file__).parent.parent / 'main.py'
|
|
result = subprocess.run(
|
|
[sys.executable, str(script)], capture_output=True, text=True
|
|
)
|
|
assert result.returncode == 0
|
|
assert result.stdout.strip() == 'Hello from ExampleAgent!'
|
|
|
|
def test_custom_message():
|
|
script = Path(__file__).parent.parent / 'main.py'
|
|
custom = 'Test Message'
|
|
result = subprocess.run(
|
|
[sys.executable, str(script), '-m', custom], capture_output=True, text=True
|
|
)
|
|
assert result.returncode == 0
|
|
assert result.stdout.strip() == custom
|